Joel Purra: Developer and more

Add invisible buttons for onClick elements

Repository details (talkie)
Project page
Project category
(588 entries)
talkie on Github@joelpurra/talkie
joelpurra on Github@joelpurra
Commit details (c1354cd5)
Authored at
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)