You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Hi Bryntum Team,
We have a button added on one of our columns of the grid. When we tested it with Narrator, it read it as "Toggle Button" while it's not a toggle button. We have tried setting aria-pressed=null and it worked properly. But I think the aria-pressed attribute should not be added to the button element unless the button is configured as toggleable."
Adding aria-pressed to an element with a role of button turns the button into a toggle button. The aria-pressed attribute is only relevant for toggle buttons. It represents the button's current "pressed" state.
So, it makes sense to have aria-pressed added only when it's a toggle button.
The text was updated successfully, but these errors were encountered:
Forum post
"Hi Bryntum Team,
We have a button added on one of our columns of the grid. When we tested it with Narrator, it read it as "Toggle Button" while it's not a toggle button. We have tried setting aria-pressed=null and it worked properly. But I think the aria-pressed attribute should not be added to the button element unless the button is configured as toggleable."
Checking MDN docs we have
So, it makes sense to have aria-pressed added only when it's a toggle button.
The text was updated successfully, but these errors were encountered: