UNPKG

react-focus-on

Version:

The final solution for WAI ARIA compatible modal dialogs or full-screen tasks.

7 lines (6 loc) 363 B
import * as React from 'react'; import { styleSingleton } from 'react-style-singleton'; import { focusHiddenMarker } from './medium'; var Style = styleSingleton(); var styles = "\n [" + focusHiddenMarker + "] {\n pointer-events: none !important;\n }\n"; export var InteractivityDisabler = function () { return React.createElement(Style, { styles: styles }); };