[wp-trac] [WordPress Trac] #31354: Compound settings confusing with screen readers (checkboxes)

WordPress Trac noreply at wordpress.org
Sun Jun 2 21:47:43 UTC 2024


#31354: Compound settings confusing with screen readers (checkboxes)
-------------------------------------------------+-------------------------
 Reporter:  Cheffheid                            |       Owner:  joedolson
     Type:  enhancement                          |      Status:  accepted
 Priority:  normal                               |   Milestone:  6.6
Component:  Administration                       |     Version:  4.1
 Severity:  normal                               |  Resolution:
 Keywords:  settings-api core-fields has-patch   |     Focuses:
  needs-testing                                  |  accessibility
-------------------------------------------------+-------------------------

Comment (by joedolson):

 This updated patch removes the ARIA live announcement and the `aria-
 expanded` attributes. The `aria-expanded` attribute is not required since
 the checkboxes do not open and close anything, and their current state is
 conveyed using the natural semantics of the checkbox input.

 The `aria-live` announcement isn't needed, in my opinion; it would just
 make things more verbose. If the change was made to something that
 preceded the current position in the DOM, it might be necessary, but since
 the change is to items that follow in the DOM, I think it's fine as is.

 Also changed the CSS & HTML so to reuse the styles from the Reading
 options screen, updated the function comments to better describe what the
 added JS now does, and removed the styles that impacted the label design.
 It's generally considered acceptable for a disabled input to be below
 color contrast guidelines, but the label still needs to be visible.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/31354#comment:31>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list