Make WordPress Core


Ignore:
Timestamp:
02/17/2025 05:47:09 PM (18 months ago)
Author:
joedolson
Message:

Accessibility: Globally update .screen-reader-text class.

Remove references to the obsolete style property clip: rect(1px, 1px, 1px, 1px); and replace or adapt to use clip-path: inset(50%);. Update associated :focus styles as appropriate. Remove prefixed instances of -webkit-clip-path.

Props afercia, hbhalodia, audrasjb, joedolson, sabernhardt.
Fixes #62238.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentyone/assets/sass/07-utilities/a11y.scss

    r52835 r59832  
    11.screen-reader-text {
    22        border: 0;
    3         clip: rect(1px, 1px, 1px, 1px);
    4         -webkit-clip-path: inset(50%);
    53        clip-path: inset(50%);
    64        height: 1px;
     
    1816        border-radius: 3px;
    1917        box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    20         clip: auto !important;
    21         -webkit-clip-path: none;
    2218        clip-path: none;
    2319        color: #21759b;
Note: See TracChangeset for help on using the changeset viewer.