Add invisible buttons for onClick elements
Repository details (talkie)
- Project page
- talkie
- Project log category
- talkie (708 entries)
- Repository
- @joelpurra/talkie
- Owner
- @joelpurra
- Issues
- Issues on Github
- Contributors
- Contributors on Github
- Project status
- ⏲️ This project has had recent commits.
- 📂 This project is open.
- 🌠 This project is popular.
- Repository activity period
- 🗓—
- Commits
- 751 commits
- Stars
- 71 stars
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.