()
| 84 | * modals are open. |
| 85 | */ |
| 86 | export function useModalProvider(): ModalProviderAria { |
| 87 | let context = useContext(Context); |
| 88 | return { |
| 89 | modalProviderProps: { |
| 90 | 'aria-hidden': context && context.modalCount > 0 ? true : undefined |
| 91 | } |
| 92 | }; |
| 93 | } |
| 94 | |
| 95 | /** |
| 96 | * Creates a root node that will be aria-hidden if there are other modals open. |
no outgoing calls
no test coverage detected