This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const visuallyHidden = { | |
| position: 'absolute', | |
| overflow: 'hidden', | |
| clip: 'rect(0 0 0 0)', | |
| height: '1px', | |
| width: '1px', | |
| margin: '-1px', | |
| padding: 0, | |
| border: 0, | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Replace this with a relevant selector. | |
| // If you use a tool that auto-generates classes, | |
| // you can temporarily add an ID and select it | |
| // with '#id'. | |
| const selector = '.the-fixed-child'; | |
| function findCulprits(elem) { | |
| if (!elem) { | |
| throw new Error( | |
| 'Could not find element with that selector' | |
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Replace this with a relevant selector. | |
| // If you use a tool that auto-generates classes, | |
| // you can temporarily add an ID and select it | |
| // with '#id'. | |
| const selector = '.the-fixed-child'; | |
| function findCulprits(elem) { | |
| if (!elem) { | |
| throw new Error( | |
| 'Could not find element with that selector' | |
| ); |