Skip to content

Add focus outline on code block tab button back for better accessibility #1046

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

Conversation

alexandersandberg
Copy link
Member

Restoring the focus outline on the code block tabs to make it easier to navigate the website using the keyboard.

Motivation:

It's good UX and useful for accessibility reasons to show where you are on the website when navigate using the tab key. Focus outlines should not be removed.

I simply added it back by removing outline: none.

We can consider a custom outline implementation if we want, but let's at least add back the default one in the meantime.

Modifications:

Result:

Before After
CleanShot 2025-06-04 at 22 25 26 CleanShot 2025-06-04 at 22 25 02

@alexandersandberg alexandersandberg merged commit bee11ba into main Jun 6, 2025
4 checks passed
@alexandersandberg alexandersandberg deleted the alexandersandberg/add-focus-outline-to-code-block-tabs branch June 6, 2025 16:31
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