-
Notifications
You must be signed in to change notification settings - Fork 1
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
improve contrast on button focus outline #2258
Conversation
src/app/components/Button.tsx
Outdated
|
||
&:focus { | ||
outline: solid ${theme.color.white}; | ||
box-shadow: inset 0 0 0 3px ${theme.color.black}; |
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.
Might want to make this rem?
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.
There's a defaultFocusOutline
style in src/app/theme.ts that you might consider. It tries to make the outline the same as the browser default. Of course, black and white will give you maximum contrast.
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 good to know but this change is actually in response to a browser default - one of them is too close to the orange of this button
https://openstax.atlassian.net/browse/DISCO-216