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

Enhance focused <select> a11y by changing the rendering of the arrow #2416

Open
julien-deramond opened this issue Dec 14, 2023 · 0 comments
Open

Comments

@julien-deramond
Copy link
Contributor

Description

When a <select> is focused (without the validation state), the border in light mode changes from gray to black. This is the only change that users can see while focusing on this input control.
For the regular <input>s, at least, they can see the blinking text cursor.

The idea would be to change the rendering of the arrow:

  • Regular state: filled triangle (black in light mode)
  • Focused state (no validation): outlined triangle (black border in light mode)

Some questions to tackle while studying this topic:

  • What about the error/success validation state with the outline when focused
  • The outlined triangle + filled triangle would mean 4 images in the CSS because of background-image
  • Inconsistency between the global visible focus rendering, and the specific one for basic form controls (when they are not in error/success)
  • What about the dropdowns that have almost the same rendering but their visible focus is not handled the same way (outline)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant