Skip to content
Prev Previous commit
Next Next commit
Update packages/components/src/toolbar-button/README.md
Elaborates more on ToolbarComponent information, mentioning its accessibility features.

Co-authored-by: Daniel Richards <daniel.p.richards@gmail.com>
  • Loading branch information
mateuswetah and talldan authored Jul 14, 2020
commit 381e18a004896b394cc1ed92f1a20b8232dfbecf
4 changes: 2 additions & 2 deletions packages/components/src/toolbar-button/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ToolbarButton

A ToolbarButton can be used to add actions to your block control, usually inside a ToolbarGroup. It has the same features of the [Button](https://developer.wordpress.org/block-editor/components/button/) component, only its style is more appropriate for a Toolbar.
A ToolbarButton can be used to add actions to your block control, usually inside a ToolbarGroup. It has similar features to the [Button](https://developer.wordpress.org/block-editor/components/button/) component. Using `ToolbarButton` will ensure the correct styling for a button in a toolbar, and also that keyboard interactions in a toolbar are consistent with the [WAI ARIA toolbar pattern](https://www.w3.org/TR/wai-aria-practices/#toolbar).

## Usage

Expand All @@ -23,4 +23,4 @@ This component accepts [the same API of the Button](https://developer.wordpress.
## Related components

* If you wish to implement a control do select options grouped as icon buttons you can use the [Toolbar](https://developer.wordpress.org/block-editor/components/toolbar/) component, which already handles this strategy.
* The ToolbarButton may be used with other elements such as [Dropdown](https://developer.wordpress.org/block-editor/components/dropdown/) to display options in a popover.
* The ToolbarButton may be used with other elements such as [Dropdown](https://developer.wordpress.org/block-editor/components/dropdown/) to display options in a popover.