Skip to content

Commit dcfdbd7

Browse files
keithamusmuan
andauthored
docs: clarify focus management in readme
Co-Authored-By: Mu-An 慕安 <[email protected]>
1 parent b8777de commit dcfdbd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import '@github/markdown-toolbar-element'
3333
<textarea id="textarea_id"></textarea>
3434
```
3535

36-
Focus management for buttons inside of the toolbar is automatically managed by the toolbar itself. The `md-*` buttons that ship with this package are automatically managed, but custom buttons needs a `data-md-button` attribute added to them, which enrolls them into focus management.
36+
`<markdown-toolbar>` comes with focus management as advised in [WAI-ARIA Authoring Practices 1.1: Toolbar Design Pattern](https://www.w3.org/TR/wai-aria-practices-1.1/examples/toolbar/toolbar.html). The `md-*` buttons that ship with this package are automatically managed. Add a `data-md-button` attribute to any custom toolbar items to enroll them into focus management.
3737

3838
## Browser support
3939

0 commit comments

Comments
 (0)