-
Notifications
You must be signed in to change notification settings - Fork 1.1k
USWDS - Disabled mixin: Test for color contrast #5455
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
Changes from all commits
329c61b
b7e8307
f71a138
32120ba
950759f
b584b12
4f96471
a53a6d4
90d6e6e
9bb417c
96a1c21
379e3f9
264b36b
987177b
a937d98
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,21 +15,6 @@ | |
} | ||
} | ||
|
||
&:disabled, | ||
&[aria-disabled="true"] { | ||
@include format-input { | ||
cursor: not-allowed; | ||
} | ||
@include format-label { | ||
color: color("disabled"); | ||
cursor: not-allowed; | ||
|
||
@media (forced-colors: active) { | ||
color: color(GrayText); | ||
} | ||
} | ||
} | ||
|
||
Comment on lines
-18
to
-32
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Duplicate styles found in Moved styles to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note It looks like format-input styles were not carried over, but I confirmed that there are no visual regressions after this consolidation. |
||
// Checkboxes and radios with tap-friendly targets | ||
&--tile { | ||
@include format-label { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,7 +68,6 @@ $close: map-merge( | |
// Placeholder overrides to ensure color contrast compliance accross browsers | ||
&::placeholder { | ||
opacity: 1; | ||
color: color("disabled-dark"); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Browsers set the color for the placeholder via the |
||
} | ||
|
||
& ~ .usa-combo-box__input-button-separator { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,16 +15,6 @@ | |
} | ||
} | ||
|
||
&:disabled, | ||
&[aria-disabled="true"] { | ||
@include format-input { | ||
cursor: not-allowed; | ||
} | ||
@include format-label { | ||
cursor: not-allowed; | ||
} | ||
} | ||
|
||
Comment on lines
-18
to
-27
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Duplicate styles found in Moved styles to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note It looks like format-input styles were not carried over, but I confirmed that there are no visual regressions after this consolidation. |
||
// Checkboxes and radios with tap-friendly targets | ||
&--tile { | ||
@include format-label { | ||
|
Uh oh!
There was an error while loading. Please reload this page.