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

Add focus state rings instead of hover to buttons #849

Open
elioqoshi opened this issue Mar 15, 2023 · 1 comment
Open

Add focus state rings instead of hover to buttons #849

elioqoshi opened this issue Mar 15, 2023 · 1 comment

Comments

@elioqoshi
Copy link
Contributor

Currently buttons focus states use the hover state for focus state (as Google does the same with M3, I assume Yaru took the same). This creates accessibility issues when navigating buttons via keyboard where it's not clear which button is focused.

A good solution for this would be to add focus rings for the focus state of these buttons, e.g:

grafik

The focus rings could use the same color as the button (or same color theme at least) so it's consistent with the button styling. Please note that this focus state would be basically on visible when navigating via keyboard.

Some references: https://dockyard.com/blog/2020/04/28/designing-for-accessibility-focus-states

@Feichtmeier Feichtmeier transferred this issue from ubuntu/archive_yaru.dart Feb 25, 2024
@Feichtmeier
Copy link
Member

Now that all yaru libs are merged this is either a theme issue or a widget issue depending on if we want to create or fully own buttons or if we want to get this into material.dart on flutter/flutter

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

2 participants