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:
Stuart Anderson
2026-09-30 11:39:36 -05:00
parent 9462358b34
commit ab8745249b

View File

@@ -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. -->