Opened 11 years ago
Closed 9 years ago
#26550 closed defect (bug) (fixed)
Some anchor links should be buttons in media microtemplates
Reported by: | joedolson | Owned by: | wonderboymusic |
---|---|---|---|
Milestone: | 4.3 | Priority: | normal |
Severity: | normal | Version: | 3.5 |
Component: | Media | Keywords: | has-patch |
Focuses: | ui, accessibility, javascript | Cc: |
Description (last modified by )
Related: #24766
// media-template.php wp_print_media_templates()
Attachments (1)
Change History (23)
#5
@
11 years ago
- Keywords needs-patch added; 2nd-opinion removed
- Version set to 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
@
11 years ago
- Summary changed from Remove title attributes: media-template.php to Some anchor links should be buttons in media microtemplates
This ticket was mentioned in Slack in #accessibility by joedolson. View the logs.
10 years ago
#11
@
10 years ago
- Milestone changed from Future Release to 4.3
- Owner set to wonderboymusic
- Status changed from new to assigned
I can change a few of the obvious ones
This ticket was mentioned in Slack in #core by afercia. View the logs.
10 years ago
#14
follow-up:
↓ 15
@
10 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-attachment
which seems to be unused, will open a new ticket for this - introduce a
.button-link
CSS class for a basic button reset, first pass - JavaScript: the 'check' and 'close' icons (see screenshot) are now buttons, no need to attach a
keydown
event and no need forpreventDefault()
- JavaScript: prevents
toggleSelectionHandler
to 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
@
9 years ago
- all the non links are now buttons, except
refresh-attachment
which 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
@
9 years ago
- Keywords dev-feedback removed
This looks good, I just need to spend more time with it
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.