-
-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously this documentation section included examples which wrap a `button` element inside an `a` element. This is not permitted in the [HTML spec](https://w3c.github.io/html-reference/button.button.html#button.button-constraints), as interactive elements cannot be children of other interactive elements. This was also an inaccessible example, seeing as typical keyboard and screenreader focus for buttons and links will be either inconsistent or broken depending on the browser Went through and updated the examples to change the `button` to a `span`, which is proper accessible HTML 👍
- Loading branch information
Showing
1 changed file
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters