Add invisible buttons for onClick elements
Repository details (talkie)
- Project page
- talkie
- Project category
- talkie (588 entries)
- Repository
- @joelpurra/talkie
- Owner
- @joelpurra
- Issues
- @joelpurra/talkie/issues
- Contributors
- @joelpurra/talkie/graphs/contributors
Commit details (c1354cd5)
- Author
- Joel Purra
- Authored at
- Committer
- Joel Purra
- Committed at
Commit message
Add invisible buttons for onClick elements
- Having
onClick
event handlers for (by default) non-interactive elements (for example<p>
) can be hard to "detect" in the user interface, and therefore confusing.- Adding a
<button type="button>
wrapper element can help with, for example, keyboard focus as it is a builtin feature.- Fixed legalese text click handler to use a fallback language (for automatic voice selection) if the preferred voice (by name) is unavailable.
Raw text
Add invisible buttons for onClick elements - Having `onClick` event handlers for (by default) non-interactive elements (for example `<p>`) can be hard to "detect" in the user interface, and therefore confusing. - Adding a `<button type="button>` wrapper element can help with, for example, keyboard focus as it is a builtin feature. - Fixed legalese text click handler to use a fallback language (for automatic voice selection) if the preferred voice (by name) is unavailable.