Opened 9 years ago
Closed 9 years ago
#29326 closed enhancement (fixed)
Improve accessibility of edit-selection mode
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 4.1 | Priority: | normal |
Severity: | normal | Version: | 4.0 |
Component: | Media | Keywords: | has-patch dev-feedback |
Focuses: | accessibility, javascript | Cc: |
Description
Two issues when using the edit selection mode - this mode is this is accessed from the post 'Add Media' modal- when multiple items are selected, 'Edit' appears in the bottom toolbar next to "clear" - taking you to the the 'edit selection' mode where you edit whats in your selection:
- Focus is lost going into/out of edit-selection mode. set focus to close or back button
- Can't remove items from edit-selection mode, which is the main point of edit-selection mode. needs patch, probably make the close icons have a tabindex and focus styling and always be visible
note these items originally raised in #23560
Attachments (4)
Change History (19)
#1
@
9 years ago
29326.diff - always show the edit selection checkboxes; remove action doesn't always work on keyboard still
This ticket was mentioned in IRC in #wordpress-ui by RianRietveld. View the logs.
9 years ago
#3
in reply to:
↑ description
@
9 years ago
Replying to adamsilverstein:
- Focus is lost going into/out of edit-selection mode. set focus to close or back button
I would suggest that focus goes into the list of files/images when entering edit mode, so people can start selecting right away without pressing tab a few times first. This might also make sense when exiting edit mode.
#4
@
9 years ago
Still needs work - currently only the selected image is removed when <enter>ing on a checkbox.
#5
@
9 years ago
- Keywords has-patch dev-feedback added
In 29326.3.diff:
better accessibility for the edit selection mode,
- Always show close button over images so tabbable
- remove image on key enter or space when on close button
- Focus on back to library button when opening edit selection mode
Before: https://cloudup.com/cdf4VBp0InQ
After: https://cloudup.com/cwK90uD69XH
Question: should I focus on the first image when opening instead?
#7
follow-up:
↓ 11
@
9 years ago
I think initially focusing on the back button makes sense.
In addition, the "Edit" link in the selection toolbar doesn't have any context for screen readers. We should add some more descriptive screen reader text (or indeed, make the visible text say "Edit Selection").
#9
follow-ups:
↓ 10
↓ 12
@
9 years ago
Pretty sure view.controller
is just this
.
modal.$el.find( ... )
can just be modal.$( ... )
#10
in reply to:
↑ 9
@
9 years ago
Replying to wonderboymusic:
Pretty sure
view.controller
is justthis
.
modal.$el.find( ... )
can just bemodal.$( ... )
Sounds reasonable, I will test/patch unless you beat me to it :)
#11
in reply to:
↑ 7
@
9 years ago
Replying to johnbillion:
In addition, the "Edit" link in the selection toolbar doesn't have any context for screen readers.
#12
in reply to:
↑ 9
@
9 years ago
- Focuses javascript added
In 29326.4.diff:
Simplify selectors:
- Use this instead of view.controller
- Use modal.$ instead of modal.$el.find
@wonderboymusic: Thank you sir!
Replying to wonderboymusic:
Pretty sure
view.controller
is justthis
.
modal.$el.find( ... )
can just bemodal.$( ... )
always show edit selection checkboxes