Make WordPress Core

Changeset 61534


Ignore:
Timestamp:
01/27/2026 12:08:50 AM (3 months ago)
Author:
joedolson
Message:

Twenty Twenty-Five: A11y: Fix color contrast in Written By pattern.

Remove the text color setting on the Written by pattern. The setting was resulting in color contrast that was well below contrast guidelines. Allow the text color to be inherited by default.

Props poena, rinkalpagdar, narenin, sabernhardt, noruzzaman, huzaifaalmesbah, joedolson.
Fixes #62982.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentyfive/patterns/hidden-written-by.php

    r59314 r61534  
    1111
    1212?>
    13 <!-- wp:group {"style":{"spacing":{"blockGap":"0.2em","margin":{"bottom":"var:preset|spacing|60"}}},"textColor":"accent-4","fontSize":"small","layout":{"type":"flex","flexWrap":"wrap"}} -->
    14 <div class="wp-block-group has-accent-4-color has-text-color has-link-color has-small-font-size" style="margin-bottom:var(--wp--preset--spacing--60)">
     13<!-- wp:group {"style":{"spacing":{"blockGap":"0.2em","margin":{"bottom":"var:preset|spacing|60"}}},"fontSize":"small","layout":{"type":"flex","flexWrap":"wrap"}} -->
     14<div class="wp-block-group has-small-font-size" style="margin-bottom:var(--wp--preset--spacing--60)">
    1515    <!-- wp:paragraph -->
    1616    <p><?php esc_html_e( 'Written by ', 'twentytwentyfive' ); ?></p>
Note: See TracChangeset for help on using the changeset viewer.