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

Respect default elements outline on tab-navigation #2749

Merged
merged 1 commit into from
Aug 17, 2024
Merged

Conversation

jonatanklosko
Copy link
Member

Currently we disable focus outline on all elements, but this makes tab navigation hard, because in most many cases there is no indication of focus.

For certain elements we want to customize the tab-focused style, but using the :focus pseudo-class is not ideal in many cases, because the element keeps the style when clicked, which in many cases is not desired. However, there is a relatively recent :focus-visible CSS pseudo-class, which is already established enough to rely on.

I iterated over the main views, notebook and form elements. We can do more adjustments as we go, but most changes are specific to tab-navigation, so the visual impact is minimal.

Copy link

github-actions bot commented Aug 16, 2024

Uffizzi Preview deployment-55321 was deleted.

@jonatanklosko jonatanklosko merged commit 05c9c17 into main Aug 17, 2024
7 checks passed
@jonatanklosko jonatanklosko deleted the jk-focus branch August 17, 2024 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants