Visitar URL original
USWDS - Checkbox + Radio: create background color variable. by mejiaj · Pull Request #4199 · uswds/uswds · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Checkbox: add new background variable to tile.
  • Loading branch information
James Mejia
James Mejia committed May 17, 2021
commit ac03d17c9c126f68218ca402244b7527d8e0d806
1 change: 1 addition & 0 deletions src/stylesheets/settings/_settings-components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ $theme-input-max-width: "mobile-lg" !default;
$theme-input-select-border-width: 2px !default;
$theme-input-select-size: 2.5 !default;
$theme-input-state-border-width: 0.5 !default;
$theme-input-tile-background-color: "white" !default;
$theme-input-tile-background-color-selected: "primary-lighter" !default;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The system now sets this automatically based on the background color. The tile background color is a more transparent version of the calculated text/border color

$theme-input-tile-border-radius: "md" !default;
$theme-input-tile-border-width: 2px !default;
Expand Down
1 change: 1 addition & 0 deletions src/stylesheets/theme/_uswds-theme-components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ $theme-input-max-width: "mobile-lg";
$theme-input-select-border-width: 2px;
$theme-input-select-size: 2.5;
$theme-input-state-border-width: 0.5;
$theme-input-tile-background-color: "white";
$theme-input-tile-background-color-selected: "primary-lighter";
$theme-input-tile-border-radius: "md";
$theme-input-tile-border-width: 2px;
Expand Down