-
Notifications
You must be signed in to change notification settings - Fork 194
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
fix(stepper): corrects invalid button color border to match field in windows high contrast mode #3103
Conversation
🦋 Changeset detectedLatest commit: 0aeeedd The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
🚀 Deployed on https://pr-3103--spectrum-css.netlify.app |
File metricsSummaryTotal size: 4.10 MB* Table reports on changes to a package's main file. Other changes can be found in the collapsed Details section below.
Detailsstepper
* Results are not gzipped or minified. * An ASCII character in UTF-8 is 8 bits or 1 byte. |
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.
I flicked the Disabled switch practically as an afterthought while Invalid was on and discovered this color mismatch 🙀 :
In this situation, disabled styling should win and that's what should be applied here. I'm wondering if we add --highcontrast-infield-button-border-color: GrayText;
to .is-disabled
and switch &.is-disabled
and &.is-invalid
, would that work? (Something like this:)
&.is-invalid {
--highcontrast-stepper-border-color: Highlight;
--highcontrast-stepper-border-color-hover: Highlight;
--highcontrast-stepper-border-color-focus: Highlight;
--highcontrast-stepper-border-color-focus-hover: Highlight;
--highcontrast-stepper-border-color-keyboard-focus: Highlight;
--highcontrast-infield-button-border-color: Highlight;
}
&.is-disabled {
--highcontrast-stepper-border-color: GrayText;
--highcontrast-infield-button-border-color: GrayText;
--highcontrast-stepper-buttons-border-width: var(--mod-stepper-border-width, var(--spectrum-stepper-border-width));
}
It changes the colors for me but I'm hoping that there aren't any other implications I'm missing of switching those selectors around?
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.
These changes look good! I'm glad all these components are getting updates in WHCM!
One more thing I noticed about the stepper that may be better off as a separate card:
Any of the disabled states here have the funny mismatching background color (the one that's only visible when you use Assistiv Labs) where the number is, similar to what you were seeing on the negative button before in #3078. Looks like it's visible in textfield too, which makes sense:
747220e
to
0aeeedd
Compare
Thank you! Nice catch — I'll open up a ticket to look at that as well. ✨ |
Description
How and where has this been tested?
Validation steps
Regression testing
Validate:
Screenshots
To-do list