Opened 9 years ago
Closed 9 years ago
#34895 closed defect (bug) (fixed)
Add screen reader text for Admin Bar Comments link
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.5 | Priority: | normal |
Severity: | normal | Version: | 3.1 |
Component: | Toolbar | Keywords: | has-patch |
Focuses: | ui, accessibility | Cc: |
Description
The Comments link on the Admin Bar only contains the number of approved and/or waiting-for-moderation comments, but no additional context telling a screen reader the meaning of that number. @afercia mentions this in #31324 when fixing other parts of the admin bar.
The following patch uses the same concept used in the list table for comments in #32152, where a screen-reader-text span is added containing the information used for the link title attribute.
Attachments (3)
Change History (8)
#1
@
9 years ago
- Component changed from General to Toolbar
- Focuses ui administration removed
- Keywords has-patch added
#3
@
9 years ago
@afercia Can you review 34895.patch? I believe this matches the prior art in the admin toolbar.
#4
@
9 years ago
- Focuses ui added
A quick screenshot with the last patch applied, tested in Firefox+NVDA:
As you can see there's a bit of redundancy. NVDA reads out:
- the comments pending count (as part of the accessible name)
- the new screen reader text (as part of the accessible name)
- then it announces the element type (link)
- finally reads out the title attribute (the accessible description)
Ideally, the first pending count number should be hidden from assistive technologies using an aria-hidden
attribute, one example of this is the comments "bubble" in the Posts list table.
Additionally, the title attribute should be removed :) it would make perfectly sense to remove the title attribute in the same way it was done for the comments bubble in #32152 with the help of design and UI people.
Patch for adding screen reader text to Comments link on Admin Bar.