Skip to content

Remove focus-visible polyfill#4224

Merged
elalish merged 2 commits intomasterfrom
focusVisible
Apr 18, 2023
Merged

Remove focus-visible polyfill#4224
elalish merged 2 commits intomasterfrom
focusVisible

Conversation

@elalish
Copy link
Contributor

@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
@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