Skip to content

Commit

Permalink
Fix spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
tombrunet committed Aug 1, 2024
1 parent 5b5de5e commit 40f5459
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions _rules/focusable-no-keyboard-trap-standard-nav-a1b64e.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ use [standard keyboard navigation](#standard-keyboard-navigation) using the Esca
>
</div>
<script>
window.addEventListener('load', () => {
document.getElementById('dialogFirst').focus();
})
window.addEventListener('load', () => {
document.getElementById('dialogFirst').focus();
})
document.getElementById('sentinelBefore').addEventListener('focus', () => {
document.getElementById('closeButton').focus()
})
Expand All @@ -119,11 +119,11 @@ use [standard keyboard navigation](#standard-keyboard-navigation) using the Esca
document.getElementById('closeButton').addEventListener('click', () => {
document.getElementById('sampleModal').style.display = 'none'
})
document.getElementById('sampleModal').addEventListener('keydown', (evt) => {
if (evt.key === "Escape") {
document.getElementById('sampleModal').style.display = 'none';
}
})
document.getElementById('sampleModal').addEventListener('keydown', (evt) => {
if (evt.key === "Escape") {
document.getElementById('sampleModal').style.display = 'none';
}
})
</script>
```

Expand Down

0 comments on commit 40f5459

Please sign in to comment.