-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fully disable focus-visible for firefox for now (#2041)
- Loading branch information
1 parent
69e3582
commit c4e8d77
Showing
4 changed files
with
11 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
import { thunk } from './thunk' | ||
import { supportsSelector } from './supportsSelector' | ||
import { isFirefoxPre88 } from './userAgent/isFirefoxPre88' | ||
import { isFirefox } from './userAgent/isFirefox' | ||
|
||
// Firefox pre-88 had a focus-visible bug: | ||
// Disabling for now in Firefox due to bugs: | ||
// https://bugzilla.mozilla.org/show_bug.cgi?id=1699154 | ||
export const supportsFocusVisible = thunk(() => (!isFirefoxPre88() && supportsSelector(':focus-visible'))) | ||
// https://bugzilla.mozilla.org/show_bug.cgi?id=1711057 | ||
export const supportsFocusVisible = thunk(() => (!isFirefox() && supportsSelector(':focus-visible'))) |
This file was deleted.
Oops, something went wrong.