mirror of
https://github.com/rommapp/romm.git
synced 2026-12-05 23:44:11 +01:00
fix(a11y): make the hidden selection bar inert, not just aria-hidden
The bar stays mounted while hidden, for its fade and size measuring. aria-hidden removed it from the accessibility tree but left its eight buttons in the tab order, which axe reports as aria-hidden-focus and which strands keyboard and gamepad focus on invisible controls. inert removes both, and the hidden bar already ignored pointer events, so mouse and touch behave as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -350,7 +350,7 @@ function clear() {
|
||||
ref="barEl"
|
||||
class="selection-bar"
|
||||
:class="{ 'selection-bar--visible': selection.enabled }"
|
||||
:aria-hidden="!selection.enabled"
|
||||
:inert="!selection.enabled"
|
||||
>
|
||||
<!-- One stroke around bar, hill and fillets, since three boxes cannot
|
||||
share a border without seams where their edges meet. -->
|
||||
|
||||
Reference in New Issue
Block a user