[wp-trac] [WordPress Trac] #30110: Twenty Fifteen: The search submit button class is display: none; That should be a class screen reader only.

WordPress Trac noreply at wordpress.org
Sun Oct 26 18:09:39 UTC 2014


#30110: Twenty Fifteen: The search submit button class is display: none; That
should be a class screen reader only.
---------------------------+-----------------------------
 Reporter:  rianrietveld   |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Bundled Theme  |    Version:  trunk
 Severity:  normal         |   Keywords:
  Focuses:  accessibility  |
---------------------------+-----------------------------
 The search widgets has a class search-submit hiding the submit button with
 display:none;

 {{{
 .search-form input[type="submit"] {
 display: none;
 }
 }}}

 This way the button is always hidden, also for all assistive technology.

 Maybe it's better to change that into a screen-reader-only functionality
 by adding the class name to the screen-reader-tex definition in style.css,
 like

 {{{
 .screen-reader-text, .search-form input[type="submit"] {
         clip: rect(1px, 1px, 1px, 1px);
         height: 1px;
         overflow: hidden;
         position: absolute !important;
         width: 1px;
 }
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30110>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list