#28853 closed defect (bug) (fixed)
Remove title attribute for plugin action links; add screen-reader-text
Reported by: | joedolson | Owned by: | wonderboymusic |
---|---|---|---|
Milestone: | 4.0 | Priority: | normal |
Severity: | normal | Version: | 4.0 |
Component: | Plugins | Keywords: | has-patch, commit, title-attribute |
Focuses: | accessibility, administration | Cc: |
Description
Information in title attributes may not be available to screen readers; patch moves plug-in name from title attribute into screen reader text directly in link.
Leaves title attribute on Installed notice; not clear how important the notification that the plug-in is up to date is. To me, it seems unimportant, so I'm OK with leaving it uncertain whether a screen reader will be able to get that information. Removing it from the title attribute would make it unavailable to sighted users, if it's hidden as screen reader text.
Attachments (5)
Change History (19)
#1
@
11 years ago
There should be no HTML in strings for translation.
Related: #26167, can we use aria-label here too?
#2
@
11 years ago
We could use aria-label; but actually aria-labelledby would probably be better. That would just require adding an ID to the title, and we could avoid the duplication of text. Patch coming.
#3
@
11 years ago
This patch also updates plugin-install.js to add a data-title attribute and pull Thickbox title from the data-title rather than from the now-absent title attribute. Also corrects plugin-install.js so that it references a valid selector (.plugin-card rather than .plugin), so that the title info will actually be inserted.
#4
@
11 years ago
- Focuses administration added
- Keywords has-patch added
- Milestone changed from Awaiting Review to 4.0
#5
@
11 years ago
- Owner set to wonderboymusic
- Resolution set to fixed
- Status changed from new to closed
In 29201:
#6
@
10 years ago
- Keywords needs-patch added; has-patch removed
- Resolution fixed deleted
- Status changed from closed to reopened
In [29201] the id="<?php echo $plugin['slug']; ?>"
part from 28853.2.patch is missing, see #29018.
#8
@
10 years ago
- Keywords has-patch added; needs-patch removed
My understanding about aria-labelledby is that it expects a value of an element IDs that are the labels for the object. Reference: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-labelledby_attribute
aria-label seems to be appropriate here.
#9
@
10 years ago
Looks like there's two options on the table:
- 28853.4.patch adds translator comments to the changes from 28853.3.patch, which switches to using aria-label
- 28853.5.patch, which adds the id attribute missed in [29201]
#10
@
10 years ago
I would use the aria-lable instead of aria-labelledby since a meaningful value can't easily be created. The ID provided for aria-labelledby would be able to get the title of the plugin without the word Install or Update for assistive technologies.
#11
@
10 years ago
aria-label
allows you to more easily customize the translations, definitely, because it doesn't require using a pair of IDs sequentially to string texts together.
aria-labelledby
would require an ID pointing at the action text (e.g. "Update") and a separate ID pointing to the title of the plug-in, but wouldn't allow easy flexibility in word order for different languages.
I'd recommend going the aria-label
route.
Removes title attributes from plugin action links.