2021-07-04 20:19:04 -07:00
|
|
|
import { thunk } from './thunk.js'
|
|
|
|
|
import { supportsSelector } from './supportsSelector.js'
|
2021-07-16 07:14:15 -07:00
|
|
|
import { isFirefoxPre90 } from './userAgent/isFirefoxPre90.js'
|
2020-09-13 15:34:01 -07:00
|
|
|
|
2021-07-16 07:14:15 -07:00
|
|
|
// Disabling in Firefox <90 due to bugs:
|
2021-03-18 07:00:42 -07:00
|
|
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=1699154
|
2021-05-14 17:54:22 -07:00
|
|
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=1711057
|
2021-07-16 07:14:15 -07:00
|
|
|
export const supportsFocusVisible = thunk(() => (!isFirefoxPre90() && supportsSelector(':focus-visible')))
|