-
Notifications
You must be signed in to change notification settings - Fork 45
fix(tabs): focus on tabs show complete outline #1486
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
Conversation
dzucconi
left a comment
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.
It'd make sense for this to be a more intentionally designed state, which this doesn't appear to be? (I could imagine the text just being underlined, or the bg getting darker, etc.)
| &:focus { | ||
| outline: none; | ||
| z-index: 2; | ||
| border: 1px solid ${themeGet("colors.blue100")}; |
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 find it surprising this doesn't alter the spacing of the elements, which applying a border typically would.
|
This is just for accessibility so we don't want to use the focus state here as this will render the blue border on mouse click as well. |
|
It gets cut off because of the |
|
@dzucconi I don't think |
|
Eh, I wouldn't do that as it'll change the spacing of every instance by 1px. Better to use border or box-shadow. |
Co-authored-by: Damon <[email protected]>
|
🚀 PR was released in |
https://artsyproduct.atlassian.net/browse/EMI-2614
Description
Clickableelement. I imagine the core fix there is to be theClickableelement take up that space.Before:

After: