-
Notifications
You must be signed in to change notification settings - Fork 585
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
Use focus-visible to hide outlines when using mouse #241
Conversation
&:focus { | ||
box-shadow: ${rgba(color.primary, 0.4)} 0 1px 9px 2px; | ||
} | ||
|
||
&:focus:hover { | ||
box-shadow: ${rgba(color.primary, 0.2)} 0 8px 18px 0px; | ||
} |
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.
Doesn't look like you added these styles back anywhere. Do I have that right? Was that the intent?
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.
That's right. I removed them all because we now have a better way to detect whether something if focused via mouse and via keyboard. If it's via mouse, there's no focus UI. If it's via keyboard, we should use the system default focus UI.
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 see. Cool. Makes sense.
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.
Seems good. Just want to validate that the space I called out is not causing any unexpected behavior.
Merge when ready 👍 |
🚀 PR was released in |
Hide :focus outlines when using a mouse and remove a bunch of :focus button styles.