Watch
0
0
Fork
You've already forked hyperhive
0

shared: a busy button keeps its accessible name

The busy state hid the label with visibility: hidden, which takes it out of the
accessibility tree, so axe reports a button with no name while it works. The
label is opacity: 0 now; the button stays aria-busy and disabled.
This commit is contained in:
iris 2026-11-28 02:20:23 +01:00 • committed by mara
commit 7e6972a191

View file

@ -32,9 +32,11 @@
.ui-button {
position: relative;
}
/* Busy: the label keeps its space, hidden, and the spinner sits over it. */
/* Busy: the label keeps its space, invisible, and the spinner sits over it.
`opacity`, not `visibility`: the label stays in the accessibility tree, so the
button keeps its name (the button is `aria-busy` and disabled). */
.ui-button-busy .ui-button-label {
visibility: hidden;
opacity: 0;
}
.ui-button-spinner {
position: absolute;