fixup! ♿️(frontend) limit share modal opening announcement for screen readers

This commit is contained in:
Cyril
2026-08-26 13:42:37 +02:00
committed by Ovgodd
parent 5eb330f22f
commit f0574ecbbb
@@ -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);