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 accessibility of default link focus styles in Firefox #5082

Merged
merged 1 commit into from
Jul 31, 2021

Conversation

adamwathan
Copy link
Member

@adamwathan adamwathan commented Jul 26, 2021

Firefox 89 introduced new focus styles for form controls that are a big improvement in terms of accessibility, but by default it doesn't carry those improvements over to links, which still have a very subtle dotted border.

All this does is replace this old legacy rule from normalize.css:

:-moz-focusring {
	outline: 1px dotted ButtonText;
}

...with this:

:-moz-focusring {
	outline: auto;
}

The Firefox team is considering just doing this by default, as you can read here:

https://bugzilla.mozilla.org/show_bug.cgi?id=1708244#c3

Before:

image

After:

image

Before on dark backgrounds:

image

After on dark backgrounds:

image

@adamwathan adamwathan force-pushed the fix-firefox-focus-styles- branch from efa9260 to 694f5fc Compare July 31, 2021 10:47
@adamwathan adamwathan merged commit 723e8d4 into master Jul 31, 2021
@adamwathan adamwathan deleted the fix-firefox-focus-styles- branch July 31, 2021 11:10
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.

1 participant