Opened 13 years ago
Closed 11 years ago
#26550 closed defect (bug) (fixed)
Some anchor links should be buttons in media microtemplates
| Reported by: | joedolson | Owned by: | wonderboymusic |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.3 |
| Component: | Media | Version: | 3.5 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | ui, accessibility, javascript |
Description (last modified by )
Related: #24766
// media-template.php wp_print_media_templates()
Attachments (1)
Change History (23)
#5
@
12 years ago
- Keywords needs-patch added; 2nd-opinion removed
- Version → 3.5
Into it. Most of these you should be able to just switch out one for one with a <button> and move the title text to the innards. After we have it all functioning well we could talk about styling.
#7
@
12 years ago
- Summary Remove title attributes: media-template.php → Some anchor links should be buttons in media microtemplates
This ticket was mentioned in Slack in #accessibility by joedolson. View the logs.
11 years ago
#11
@
11 years ago
- Milestone Future Release → 4.3
- Owner set to
- Status new → assigned
I can change a few of the obvious ones
This ticket was mentioned in Slack in #core by afercia. View the logs.
11 years ago
#14
follow-up:
↓ 15
@
11 years ago
- Focuses ui javascript added
- Keywords has-patch dev-feedback added; needs-patch removed
In the proposed patch (first pass):
- all the non links are now buttons, except
refresh-attachmentwhich seems to be unused, will open a new ticket for this - introduce a
.button-linkCSS class for a basic button reset, first pass - JavaScript: the 'check' and 'close' icons (see screenshot) are now buttons, no need to attach a
keydownevent and no need forpreventDefault() - JavaScript: prevents
toggleSelectionHandlerto fire when activating the 'check' and 'close' buttons, fixes #32540 - translatable strings: updated the 'Remove' strings to be more descriptive when read out of context
#15
in reply to: ↑ 14
@
11 years ago
- all the non links are now buttons, except
refresh-attachmentwhich seems to be unused, will open a new ticket for this
See #32550. Would greatly appreciate some devs eyes and possibly propose for commit consideration.
#16
@
11 years ago
- Keywords dev-feedback removed
This looks good, I just need to spend more time with it
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)

This file is filled with anchor elements with titles and no link text. Most of these links are probably functions that should be triggered by buttons, not links. (see #26504)
I can add screen-reader-text to all of the empty anchors, but I think I need to spend some more time with this and look at the alternatives before I can pull up a patch.
Opinions regarding how to best approach this are welcome.