[wp-trac] [WordPress Trac] #35198: Adding this Widget and selecting "Display as Dropdown" will show the word Categories twice
WordPress Trac
noreply at wordpress.org
Tue Aug 2 07:11:34 UTC 2016
#35198: Adding this Widget and selecting "Display as Dropdown" will show the word
Categories twice
--------------------------+----------------------------
Reporter: myBCN | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Widgets | Version: 4.4
Severity: normal | Resolution: invalid
Keywords: | Focuses: accessibility
--------------------------+----------------------------
Changes (by afercia):
* keywords: close =>
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
Yep, as pointed out in previous comments that's because when set to
"Display as dropdown" the `<select>` element needs a proper `<label>` that
uses a `screen-reader-text` CSS class so it's visually hidden. Worth
noting `screen-reader-text` is included in the WordPress generated CSS
classes that every theme should provide:
https://codex.wordpress.org/CSS#WordPress_Generated_Classes
> Each Theme should have these or similar styles in its style.css
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35198#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list