Commit a3ed084
Align focus with aria-pressed on Region snap-back to FullPage
After pressing Esc on the Region overlay with no clip, the snap-back
clicked the fallback (Full Page) button — flipping aria-pressed to
match — but then explicitly focused the Region button. Screen readers
announced the wrong state ("Region toggle button, not pressed") while
the visual selected state correctly showed Full Page.
Focus the fallback button instead so aria-pressed and focus stay
aligned. Also covers the same pattern for non-FullPage fallbacks (if
modeBeforeRegion was Article, focus lands on Article after Esc).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent cf84423 commit a3ed084
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3010 | 3010 | | |
3011 | 3011 | | |
3012 | 3012 | | |
3013 | | - | |
3014 | | - | |
3015 | | - | |
| 3013 | + | |
| 3014 | + | |
| 3015 | + | |
| 3016 | + | |
| 3017 | + | |
3016 | 3018 | | |
3017 | 3019 | | |
3018 | 3020 | | |
| |||
0 commit comments