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-includes/theme-templates.php

    r59831 r59832  
    129129                .skip-link.screen-reader-text {
    130130                        border: 0;
    131                         clip: rect(1px,1px,1px,1px);
    132131                        clip-path: inset(50%);
    133132                        height: 1px;
     
    142141                .skip-link.screen-reader-text:focus {
    143142                        background-color: #eee;
    144                         clip: auto !important;
    145143                        clip-path: none;
    146144                        color: #444;
Note: See TracChangeset for help on using the changeset viewer.