FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

doc: add missing ARIA label for button by Trott · Pull Request #37031 · nodejs/node · GitHub

/ node Public

doc: add missing ARIA label for button - #37031

Merged
Trott merged 1 commit into
nodejs:masterfrom
Trott:aria
Jan 24, 2021
Merged

doc: add missing ARIA label for button#37031
Trott merged 1 commit into
nodejs:masterfrom
Trott:aria

Conversation

Trott commented Jan 23, 2021

Copy link
Copy Markdown
Member

The button for toggling light mode and dark mode has no text display.
Screen readers will read it as simply "button", making it not useful.
Add an aria-label attribute so it gets a better description.

nodejs-github-bot added the doc Issues and PRs related to the documentations. label Jan 23, 2021

aduh95 commented Jan 23, 2021

Copy link
Copy Markdown
Contributor

Fast-track to include it in #37020?

aduh95 added the fast-track PRs that do not need to wait for 48 hours to land. label Jan 23, 2021
Comment thread doc/template.html Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality
Suggested change
<button class="theme-toggle-btn" id="theme-toggle-btn" aria-label="Toggle dark mode/light mode" hidden>
<button class="theme-toggle-btn" id="theme-toggle-btn" title="Toggle dark mode/light mode" hidden>

No strong opinion, but title also helps those who hover the element with their cursor.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Using title attribute for a tooltip is generally undesirable from an accessibility point of view. It's possible that a lot (most? all?) of the relevant concerns may be addressed in this particular situation by also having the aria-label attribute. But I'd want to look at it more closely. I'll add a tooltip in a follow-on PR (unless someone beats me to it).

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

The button for toggling light mode and dark mode has no text display.
Screen readers will read it as simply "button", making it not useful.
Add an aria-label attribute so it gets a better description.

PR-URL: nodejs#37031
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Trott merged commit 835b85d into nodejs:master Jan 24, 2021

Trott commented Jan 24, 2021

Copy link
Copy Markdown
Member Author

Landed in 835b85d

Trott deleted the aria branch January 24, 2021 02:55
targos pushed a commit that referenced this pull request Feb 2, 2021
The button for toggling light mode and dark mode has no text display.
Screen readers will read it as simply "button", making it not useful.
Add an aria-label attribute so it gets a better description.

PR-URL: #37031
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
targos mentioned this pull request Feb 2, 2021
targos pushed a commit that referenced this pull request May 1, 2021
The button for toggling light mode and dark mode has no text display.
Screen readers will read it as simply "button", making it not useful.
Add an aria-label attribute so it gets a better description.

PR-URL: #37031
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
danielleadams mentioned this pull request May 3, 2021
This file contains hidden or 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Issues and PRs related to the documentations. fast-track PRs that do not need to wait for 48 hours to land.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL