Skip to content
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.

Commit

Permalink
Tweak to work with background color change introduced in uswds/uswds#…
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnaab committed Aug 17, 2021
1 parent 4de7447 commit 5d1406e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
9 changes: 5 additions & 4 deletions src/web/src/browser/views/components/ValidatorPage.tsx
Expand Up @@ -122,7 +122,10 @@ export const ValidatorPage = () => {
</div>
<div className="usa-radio">
{schematron.filterOptions.roles.map((filterRole, index) => (
<div key={index}>
<div
key={index}
className={`bg-${colorTokenForRole(filterRole)}-lighter`}
>
<input
className="usa-radio__input usa-radio__input--tile"
id={`role-${filterRole}`}
Expand All @@ -135,9 +138,7 @@ export const ValidatorPage = () => {
}
/>
<label
className={`usa-radio__label bg-${colorTokenForRole(
filterRole,
)}-lighter`}
className="usa-radio__label"
htmlFor={`role-${filterRole}`}
>
<svg
Expand Down
3 changes: 0 additions & 3 deletions src/web/src/browser/views/index.scss
Expand Up @@ -43,16 +43,13 @@ $theme-header-max-width: 'widescreen';
}

.bg-error-lighter {
//background-color: color('error-lighter');
@include checkbox-and-radio-colors('error-lighter');
}

.bg-warning-lighter {
//background-color: color('warning-lighter');
@include checkbox-and-radio-colors('warning-lighter');
}

.bg-info-lighter {
//background-color: color('info-lighter');
@include checkbox-and-radio-colors('info-lighter');
}

0 comments on commit 5d1406e

Please sign in to comment.