2020-09-14 00:34:01 +02:00
|
|
|
import { thunk } from './thunk'
|
|
|
|
import { supportsSelector } from './supportsSelector'
|
2021-03-18 15:00:42 +01:00
|
|
|
import { isFirefox } from './userAgent/isFirefox'
|
2020-09-14 00:34:01 +02:00
|
|
|
|
2021-03-18 15:00:42 +01:00
|
|
|
// TODO: remove the Firefox check once this bug is fixed
|
|
|
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=1699154
|
|
|
|
export const supportsFocusVisible = thunk(() => (!isFirefox() && supportsSelector(':focus-visible')))
|