this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Test using inert to control text searchability

+30
+18
src/components/modal.jsx
··· 41 41 ); 42 42 useCloseWatcher(onClose, [onClose]); 43 43 44 + useEffect(() => { 45 + const $deckContainers = document.querySelectorAll('.deck-container'); 46 + if (children) { 47 + $deckContainers.forEach(($deckContainer) => { 48 + $deckContainer.setAttribute('inert', ''); 49 + }); 50 + } else { 51 + $deckContainers.forEach(($deckContainer) => { 52 + $deckContainer.removeAttribute('inert'); 53 + }); 54 + } 55 + return () => { 56 + $deckContainers.forEach(($deckContainer) => { 57 + $deckContainer.removeAttribute('inert'); 58 + }); 59 + }; 60 + }, [children]); 61 + 44 62 const Modal = ( 45 63 <div 46 64 ref={(node) => {
+12
src/pages/status.jsx
··· 153 153 return () => clearTimeout(timer); 154 154 }, [showMediaOnly]); 155 155 156 + useEffect(() => { 157 + const $deckContainers = document.querySelectorAll('.deck-container'); 158 + $deckContainers.forEach(($deckContainer) => { 159 + $deckContainer.setAttribute('inert', ''); 160 + }); 161 + return () => { 162 + $deckContainers.forEach(($deckContainer) => { 163 + $deckContainer.removeAttribute('inert'); 164 + }); 165 + }; 166 + }, []); 167 + 156 168 return ( 157 169 <div class="deck-backdrop"> 158 170 {showMedia ? (