Skip to content

Commit

Permalink
note about focus a11y
Browse files Browse the repository at this point in the history
  • Loading branch information
samthor authored Aug 15, 2017
1 parent b84576a commit 9e63a09
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,11 @@ dialog {
transform: translate(0, -50%);
}
```

## Extensions

### Focus

The WAI-ARIA doc suggests returning focus to the previously focused element after a modal dialog is closed.
However, this is not part of the dialog spec itself.
See [this snippet](https://gist.github.com/samthor/babe9fad4a65625b301ba482dad284d1) to add this, even to the native `dialog`.

0 comments on commit 9e63a09

Please sign in to comment.