-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
changelog: improvements, add style and markdown for checked and disab… #313
Conversation
…led radios and checkboxes, LG-6230
src/scss/components/_inputs.scss
Outdated
|
||
.usa-checkbox__image { | ||
filter: invert(45%) sepia(1%) saturate(0%) hue-rotate(232deg) brightness(100%) contrast(80%); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these styles necessary, since it appears they're the same as what would be applied below on lines 144-150?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not necessary, removing now. Thanks for catching.
Co-authored-by: Andrew Duthie <[email protected]>
…ty-style-guide into checkbox-disabled-and-checked
src/scss/components/_inputs.scss
Outdated
background-color: color('disabled'); | ||
background-size: units(1) auto; | ||
box-shadow: inset 0 0 0 units($border-width) color('disabled'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/scss/components/_inputs.scss
Outdated
background-color: color('disabled'); | ||
background-size: units(1) auto; | ||
box-shadow: inset 0 0 0 units($border-width) color('disabled'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -76,15 +76,19 @@ $input-select-margin-right: 1; | |||
border-radius: 50%; | |||
} | |||
|
|||
.usa-radio__input:disabled + .usa-radio__label::before, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. I added that back in. Ty
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Co-authored-by: Andrew Duthie <[email protected]>
…led radios and checkboxes, LG-6230
What
Adding styles and markdown content for displaying variations on radios and checkboxes that are both checked and disabled.
Why
Needed for LG-6230 when users see a form they previously submitted and can select more options but not unselect the one they previously selected. Those options are checked but they must also be disabled.
Example: