feat(Button): add focus outline offset - #7708
Conversation
|
Preview: https://pf-pr-7708.surge.sh A11y report: https://pf-pr-7708-a11y.surge.sh |
|
@kmcfaul there will be tokens for focus outlines coming next quarter probably, so the manual size you have works for now. |
|
Just poking around for a little bit, the titles in this card demo no longer show well (before and after below) due to an overflow issue. We can try and address these, but there will probably be issues like this that pop up considering how common the button in all kinds of layouts.
@lboehling this moves the focus outline 2px outside of the button component. WDYT? Given the upcoming focus state changes, is the recommendation still to move the outline outside of the button? #6428 (comment) |
The most recent token update pulled in focus-ring specific design tokens!
There are also global tokens now added for focus-ring--width & focus-ring--color too if we wanted to use those.
|
|
@logonoff in #7420, you added If @logonoff can confirm that style isn't needed, @kmcfaul do you mind also removing That should fix the outline focus outline being cut off in my comment above. |
I don't remember why we needed
However during testing I noticed that the issue still appears for actionable/selectable cards (the card become scrollable instead of wrapping):
But this bug still occurs even with |
ab7b8f5 to
6126446
Compare
|
🎉 This PR is included in version 6.3.0-prerelease.50 🎉 The release is available on: Your semantic-release bot 📦🚀 |









Closes #6428
@srambach Is there a particular token we want to use for the outline offset? I looked at other instances of the offset and didn't notice a standard so went with a small value to start.