Skip to content
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

Merged
merged 16 commits into from
Jul 16, 2024
Merged

improve contrast on button focus outline #2258

merged 16 commits into from
Jul 16, 2024

Conversation

bethshook
Copy link
Contributor

@bethshook bethshook commented Jun 17, 2024

@bethshook bethshook requested a review from a team as a code owner June 17, 2024 19:20
@bethshook bethshook requested a review from RoyEJohnson June 17, 2024 19:20
@TomWoodward TomWoodward temporarily deployed to rex-web-button-focus-wyvedxy1a June 17, 2024 19:20 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-button-focus-wyvedxy1a June 17, 2024 19:46 Inactive
@bethshook bethshook requested a review from jivey June 21, 2024 01:45

&:focus {
outline: solid ${theme.color.white};
box-shadow: inset 0 0 0 3px ${theme.color.black};
Copy link
Member

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?

Copy link
Contributor

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.

Copy link
Contributor Author

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

@Malar-Natarajan Malar-Natarajan temporarily deployed to rex-web-button-focus-hybwvgxhi June 26, 2024 16:04 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-button-focus-hybwvgxhi June 26, 2024 19:26 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-button-focus-hybwvgxhi June 27, 2024 17:01 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-button-focus-hybwvgxhi June 27, 2024 17:23 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-button-focus-hybwvgxhi June 27, 2024 17:52 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-button-focus-hybwvgxhi June 28, 2024 17:48 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-button-focus-hybwvgxhi July 2, 2024 15:50 Inactive
@Malar-Natarajan Malar-Natarajan merged commit 4142fc1 into main Jul 16, 2024
8 of 9 checks passed
@Malar-Natarajan Malar-Natarajan deleted the button-focus branch July 16, 2024 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants