docs: clarify focus management in readme

Co-Authored-By: Mu-An 慕安 <me@muanchiou.com>
This commit is contained in:
Keith Cirkel 2020-04-02 10:40:04 +01:00 коммит произвёл GitHub
Родитель b8777de92b
Коммит dcfdbd7845
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -33,7 +33,7 @@ import '@github/markdown-toolbar-element'
<textarea id="textarea_id"></textarea>
```
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.
`<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.
## Browser support