@code.gov/code-gov-style
Advanced tools
Comparing version 1.10.17 to 1.10.18
{ | ||
"name": "@code.gov/code-gov-style", | ||
"version": "1.10.17", | ||
"version": "1.10.18", | ||
"description": "Style for code.gov including buttons, banners, and cards. Inspired by and somewhat based on USWDS.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -30,11 +30,11 @@ 'use strict'; | ||
if (rounded > 0 && rounded < 4) { | ||
category = 'low' | ||
category = 'low'; | ||
} else if (rounded >= 4 && rounded < 7) { | ||
category = 'medium' | ||
} else if (rounded >= 7) { | ||
category = 'high' | ||
category = 'high'; | ||
} else { | ||
category = '' | ||
category = ''; | ||
} | ||
this.innerHTML = '<div class="corner-tag ' + category + '"><div class="corner-tag-value">' + rounded + '</div></div>'; | ||
this.innerHTML = `<div class="corner-tag ${category}"><div class="corner-tag-value">${rounded}</div></div>`; | ||
} | ||
@@ -41,0 +41,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
897687