Replies: 1 comment 2 replies
-
Unfortunately this is the way to do it at this time. We have some work on Toolbar going on right now, this may be resolved by that. I'd originally implemented Toolbar to support nesting by changing to Group internally, #5080 but it was removed for initial release because it required too many dependencies. Technically, there is nothing wrong with nesting the role="toolbar" the spec has no comments on it that I could find. As noted in the description of the PR, it didn't announce the outer toolbar's name like it does for group. However, that was also 1.5 years ago, AT may be announcing this differently now. Why do you want to avoid nesting them? |
Beta Was this translation helpful? Give feedback.
-
ToggleButtonGroup
with multiple selection hastoolbar
role, so it cannot be insideToolbar
. As for single selection, is the 'radiogroup' role appropriate insideToolbar
?In the Toolbar example,
Group
is used. That means all the toggle button group's state management needs to be reimplemented.Is there a better way to approach this?
Beta Was this translation helpful? Give feedback.
All reactions