Repository navigation
Make accessible toolbar stable and deprecate old usage - #23316
Conversation
|
Size Change: +579 B (0%) Total Size: 1.16 MB
ℹ️ View Unchanged
|
|
Cross-linking my comment #23615 (comment) in the tracking issue for experimental APIs. |
This is actually an invalid warning as it may still be rendered inside <ToolbarGroup />
|
This is ready for review! :) |
youknowriad
left a comment
There was a problem hiding this comment.
This is looking great for me.
I'd like to ensure that I understand the block author story better here (as I think it's important to include in the dev note). How does a block author add an accessible toolbar/buttons to its BlockControls?
If I'm understanding properly, there's no assumptation that a parent Toolbar exists, so we have to add a Toolbar with its children, right? And if we want to add a single button, we just use Button directly, right?
|
@youknowriad Not exactly. I updated the docs here so they're (hopefully) more clear regarding the usage of Basically you have to use either If you use |


Closes #18619
Summary of changes in this PR:
__experimentalToolbarItemcomponent toToolbarItem.Toolbar's__experimentalAccessibilityLabelprop tolabel.Toolbarwhen used without thelabelprop (will still fallback toToolbarGroupfor backward compatibility).Toolbar,ToolbarGroup,ToolbarButtonandToolbarItemcomponents.How to test?
Make sure block toolbar and the top toolbar are working.