[wp-trac] [WordPress Trac] #32757: Press This: use a split button for Save | Publish | Preview
WordPress Trac
noreply at wordpress.org
Wed Jun 24 13:18:03 UTC 2015
#32757: Press This: use a split button for Save | Publish | Preview
-------------------------+----------------------------
Reporter: azaozz | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.3
Component: Press This | Version:
Severity: normal | Resolution:
Keywords: | Focuses: accessibility
-------------------------+----------------------------
Comment (by afercia):
Nice to see this is happening :) Tested a bit with Firefox+NVDA and all is
announced nicely. Compared with the Bootstrap implementation, see
http://getbootstrap.com/components/#btn-dropdowns-split, there are a
couple of things that could be improved a bit.
- the actions in the dropdown should be marked up as an unordered list,
this way when navigating from the toggle button to the list, users would
be informed about the number of actions available: "List with nn items"
- pressing Escape should close the dropdown and move focus back to the
toggle button
- when the dropdown is open maybe the toggle button should be visually
displayed as if it was "pressed"
Please notice Bootstrap also implements full arrows navigation, to emulate
the native `<select>` behavior: you can open the dropdown pressing the
down arrow on your keyboard and navigate through the items with the
up/down arrow keys. Also, arrows navigation is constrained inside the
dropdown even if the current implementation doesn't work when using a
screen reader, would need a `role=application` to actually work. By the
way I'm not sure we should try to implement arrows navigation, maybe
better to keep it simple for now :)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32757#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list