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

Remove focus-visible polyfill #4224

Merged
merged 2 commits into from
Apr 18, 2023
Merged

Remove focus-visible polyfill #4224

merged 2 commits into from
Apr 18, 2023

Conversation

elalish
Copy link
Collaborator

@elalish elalish commented Apr 17, 2023

Fixes #4221

focus-visible finally has universal support (or close enough), so this allows us to simplify all our usage examples, as well as remove a bunch of code. Additionally, the bug prompting this turns out to be caused by the focus outline becoming hidden by our overflow-hidden CSS. It's different on different browsers, but a little extra CSS makes it work everywhere pretty well.

@elalish elalish self-assigned this Apr 17, 2023
@elalish elalish merged commit aa94742 into master Apr 18, 2023
3 of 4 checks passed
@elalish elalish deleted the focusVisible branch April 18, 2023 23:40
JL-Vidinoti pushed a commit to vidinoti/model-viewer that referenced this pull request Apr 22, 2024
* removed focus-visible polyfill

* fix overflow-hidden outline
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.

Keyboard focus outline broken in Firefox and Safari
1 participant