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 |
pfulton
left a comment
There was a problem hiding this comment.
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
pfulton
left a comment
There was a problem hiding this comment.
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} |
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