Joel Purra: Developer and more


Add invisible buttons for onClick elements

Repository details (talkie)
Project page
talkie
Project category
(588 entries)
Repository
talkie on Github@joelpurra/talkie
Owner
joelpurra on Github@joelpurra
Commit details (c1354cd5)
Author
Authored at
Commiter
Joel Purra
Commited 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.

Changed files (12)

Commit categories (3)