-
Notifications
You must be signed in to change notification settings - Fork 201
fix(stepper): focus bugs #2358
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): focus bugs #2358
Conversation
File metricsSummaryTotal size: 3.97 MB*
Detailsinfieldbutton
stepper
* Results are not gzipped or minified. * An ASCII character in UTF-8 is 8 bits or 1 byte. |
🚀 Deployed on https://pr-2358--spectrum-css.netlify.app |
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.
Thanks for taking care of this one!
It looks like this is slightly different in Firefox vs. Chrome, which is maybe ok. I'm a bit more concerned about the missing (overlapping?) focus indicator border when the stepper buttons are focused.
Also, and I think we could do this as a separate/follow-up ticket: can we get representation in Chromatic for the focus states?
e99062d
to
9b7665e
Compare
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.
Looking much better! Thank you.
Just one question regarding Storybook: if I flip the focused
control to true, it doesn't appear to affect the component in any visual way. Should it be turning off and on the focus indicator?
...args | ||
})} | ||
|
||
${isChromatic() ? chromaticKitchenSink(args) : null} |
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.
😍
2a5e198
to
28804db
Compare
Good catch! I broke it in the Chromatic Coverage commit by passing args manually when I didn't need to. Should be fixed now. |
28804db
to
e31e7b0
Compare
e31e7b0
to
8172ec9
Compare
Description
This PR fixes two focus bugs in the Stepper component:
And also adds kitchen sink style Chromatic coverage for all the variants of Stepper.
How and where has this been tested?
Please tag yourself on the tests you've marked complete to confirm the tests have been run by someone other than the author.
Validation steps
In the docs site (check Spectrum and Express theme):
Regression testing
Validate:
To-do list