[wp-trac] [WordPress Trac] #39441: Improve the Settings API for accessibility and ease of use.

WordPress Trac noreply at wordpress.org
Mon Feb 27 20:04:56 UTC 2017


#39441: Improve the Settings API for accessibility and ease of use.
-------------------------------------+-------------------------------------
 Reporter:  flixos90                 |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  Future Release
Component:  Plugins                  |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  settings-api has-patch   |     Focuses:  accessibility,
  2nd-opinion                        |  administration
-------------------------------------+-------------------------------------

Comment (by afercia):

 Replying to [comment:19 flixos90]:
 > * The `$title` is currently printed out twice when `fieldset` is true.
 That is because the two column layout restricts us in a way that the
 `fieldset` can only be part of the right column, not actually wrap both
 columns. Therefore the `$title` is printed as `<span aria-hidden="true">`
 in the left column and as `<fieldset><legend class="screen-reader-text">`
 in the right column. It would be much better if the `<legend>` could be
 used as visual element as well instead of having two elements. This would
 require us to get rid of the two column layout though.

 About this, there's also another option. In the current patch, it is not
 possible to make the fieldset wrap both columns because `<div>` elements
 are used to mimic the two columns layout. However, these `<div>`s are not
 actually required and there are other ways to have a two columns layout
 via CSS. Without `<div>`s, the fieldset legend could be actually, and
 properly, used as a visual element avoiding aria-hidden and screen-reader-
 text all together.
 Not to mention the markup would be a lot cleaner.

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


More information about the wp-trac mailing list