Make WordPress Core


Ignore:
Timestamp:
03/04/2019 10:45:24 PM (6 years ago)
Author:
afercia
Message:

Accessibility: Hide the Toolbar sub-menu CSS generated icons from assistive technologies.

CSS generated content is rendered for speech output. When it's not meant to be announced by assistive technologies, for example with font icons, special care should be used to hide it. At the moment, the only reliable way to do this is making use of a wrapper element and set aria-hidden="true" on it.

Fixes #37513.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/css/admin-bar.css

    r44791 r44793  
    232232#wpadminbar > #wp-toolbar > #wp-admin-bar-root-default .ab-icon,
    233233#wpadminbar .ab-icon,
    234 #wpadminbar .ab-item:before {
     234#wpadminbar .ab-item:before,
     235.wp-admin-bar-arrow {
    235236    position: relative;
    236237    float: left;
     
    309310}
    310311
    311 #wpadminbar .menupop .menupop > .ab-item:before,
     312#wpadminbar .menupop .menupop > .ab-item .wp-admin-bar-arrow:before,
    312313#wpadminbar .ab-top-secondary .menupop .menupop > .ab-item:before {
    313314    position: absolute;
     
    323324}
    324325
    325 #wpadminbar .menupop .menupop > .ab-item:before {
     326#wpadminbar .menupop .menupop > .ab-item .wp-admin-bar-arrow:before {
    326327    top: 1px;
    327     right: 4px;
     328    right: 10px;
     329    padding: 4px 0;
    328330    content: "\f139";
    329331    color: inherit;
     
    335337}
    336338
    337 #wpadminbar .ab-top-secondary .menupop .menupop > .ab-item:before {
     339#wpadminbar .ab-top-secondary .menupop .menupop > .ab-item .wp-admin-bar-arrow:before {
    338340    top: 1px;
    339341    left: 6px;
Note: See TracChangeset for help on using the changeset viewer.