Make WordPress Core

Changeset 52674


Ignore:
Timestamp:
02/04/2022 12:54:26 PM (3 years ago)
Author:
audrasjb
Message:

Toolbar: Don't hide admin bar text labels from screen readers on small screens.

This change replaces display: none with screen-reader-text styles so the text labels are available for screen readers on small screens.

Props legendusmaximus, sabernhardt, konradyoast.
Fixes #54895.

File:
1 edited

Legend:

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

    r52209 r52674  
    796796
    797797    #wpadminbar .ab-label {
    798         display: none;
     798        border: 0;
     799        clip: rect(1px, 1px, 1px, 1px);
     800        -webkit-clip-path: inset(50%);
     801        clip-path: inset(50%);
     802        height: 1px;
     803        margin: -1px;
     804        overflow: hidden;
     805        padding: 0;
     806        position: absolute;
     807        width: 1px;
     808        word-wrap: normal !important;
    799809    }
    800810
Note: See TracChangeset for help on using the changeset viewer.