Opened 9 years ago
Closed 9 years ago
#36554 closed defect (bug) (fixed)
Replace div with button so media attachment modal can be closed with keyboard
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.6 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Media | Keywords: | has-patch |
Focuses: | accessibility | Cc: |
Description
The modal for attaching a media item to a post uses a <div> for a close element. Switches to a button.
Probably should also add some focus management into media.js so that focus lands in an appropriate place; not handled in this patch.
Attachments (2)
Change History (5)
#1
@
9 years ago
- Milestone changed from Awaiting Review to 4.6
- Owner set to afercia
- Status changed from new to assigned
#2
@
9 years ago
Yep this modal dialog needs a complete accessibility treatment, as done for example for the "advanced" editor link modal. In the meanwhile this is good to go. Changed just one thing: wouldn't recommend to use the CSS class button-link
here because it's going to be modified and have an underline and other new things in #35126.
Note: See
TracTickets for help on using
tickets.
Switch from div to button