UNPKG

@workday/canvas-kit-react

Version:

The parent module that contains all Workday Canvas Kit React components

18 lines (17 loc) 1.04 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.useModalCard = void 0; const common_1 = require("@workday/canvas-kit-react/common"); const popup_1 = require("@workday/canvas-kit-react/popup"); exports.useModalCard = (0, common_1.composeHooks)(popup_1.usePopupCard, (0, common_1.createElemPropsHook)(popup_1.usePopupModel)(() => { return { /** * `aria-modal` was added with the intent that screen readers would add support to properly define content within a modal, * including popups like a Select. However, when aria-modal is true, it will hide other elements from screen readers, * including popups owned by the modal because these popups are siblings to the modal and not ancestors. There is no defined time when Apple/VoiceOver * might change this behavior and better support aria-owns, so for the time being we'll explicitly set this to false to provide a better * VoiceOver experience. */ 'aria-modal': false, }; }));