Accessibility Regression: SelectButton roles (radio & checkbox) #17122
Labels
Status: Pending Review
Issue or pull request is being reviewed by Core Team
Milestone
Describe the bug
In v17, the buttons in a single-selection SelectButton have
role="radio"
, and the buttons in a multiple-selection SelectButton haverole="checkbox"
. And when the buttons are selected, they havearia-checked="true"
.However, in v18 and v19, the buttons have the implicit role
button
. And instead ofaria-checked="true"
, they havearia-pressed="true"
.Using the
radio
andcheckbox
roles makes sense because the user selects options like they would with a set of radio buttons or checkboxes.v17: https://v17.primeng.org/selectbutton
v19: https://primeng.org/selectbutton
Steps to reproduce the behavior
Use the SelectButton component in PrimeNG v18 or v19.
Expected behavior
The buttons in a single-selection SelectButton component use
role="radio"
witharia-checked="true"
, and the buttons in a multiple-selection SelectButton component userole="checkbox"
witharia-checked="true"
.The text was updated successfully, but these errors were encountered: