[wp-trac] [WordPress Trac] #37980: Don't attach events to customizer section headings with cannot-expand class
WordPress Trac
noreply at wordpress.org
Sat Sep 24 00:18:17 UTC 2016
#37980: Don't attach events to customizer section headings with cannot-expand class
----------------------------------------+-------------------------------
Reporter: celloexpressions | Owner: celloexpressions
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 4.7
Component: Customize | Version: 4.3
Severity: normal | Resolution:
Keywords: good-first-bug needs-patch | Focuses: javascript
----------------------------------------+-------------------------------
Comment (by celloexpressions):
Cannot-expand headings should not be focusable; if there is a focusable
element within them, it would be a distinct link or button element that's
separate. Not applying the cannot-expand styling when the element is
focusable is a good way to ensure that developers remember to remove the
`tabindex=0` from section markup that's copied from expandable core
sections. On the other hand, it could look broken for users, but if we
also unstyle it on focus, the accessible experience is even worse. Anyone
else have thoughts here?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37980#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list