mirror of
https://github.com/suitenumerique/docs.git
synced 2026-09-28 04:25:09 +02:00
fixup! ♿️(frontend) limit share modal opening announcement for screen readers
This commit is contained in:
@@ -168,9 +168,12 @@ export const DocShareModal = ({ doc, onClose, isRootDoc = true }: Props) => {
|
||||
// accessibility tree during the opening announcement, then restore it.
|
||||
useEffect(() => {
|
||||
if (canShare) {
|
||||
setIsContentAccessible(true);
|
||||
return;
|
||||
}
|
||||
|
||||
setIsContentAccessible(false);
|
||||
|
||||
const id = window.setTimeout(() => {
|
||||
setIsContentAccessible(true);
|
||||
}, DEBOUNCE_MS);
|
||||
|
||||
Reference in New Issue
Block a user