Setting correct roles for lists with check/radio options#28684
Setting correct roles for lists with check/radio options#28684uptimeZERO wants to merge 6 commits intodevfrom
Conversation
| ></search-input> | ||
| </ha-dialog-header> | ||
| <ha-list multi> | ||
| <ha-list multi innerRole="menu" itemRoles="menuitemcheckbox"> |
There was a problem hiding this comment.
Did you test if this works? As the child of ha-list is lit-virtualizer my guess is that the items in the virtualizer are not targeted by this.
|
Is there anyone that has much experience with |
|
@uptimeZERO there is a merge conflict |
|
@bramkragten I can make time to pull this branch and test it, but not for several days at least given the holidays. @uptimeZERO if you tested this with a screen reader/OS, please describe. These roles are difficult to get right and I think this should be tested thoroughly. Thank you for the effort and I'll do my best to help. |
…-menus-with-radio-or-checkbox-items
|
Upon further testing of implementations, the solution is imperfect and hacky. This will require a more in-depth solution that works consistently and in all scenarios. Closing for now, may revisit in future |
Proposed change
Updating
ha-listusages to set the correct role when used as a checklist/radiolist and also setting default role.Type of change
Example configuration
Additional information
Checklist
If user exposed functionality or configuration variables are added/changed: