Make WordPress Core

Changeset 63532


Ignore:
Timestamp:
09/08/2026 12:55:08 PM (2 months ago)
Author:
afercia
Message:

Editor: Fix color of the TinyMCE button icons in the Classic block.

Fixes a CSS specificity conflict with the TinyMCE skin where the button icons were white and barely visible in the buttons active state.

Developed in ​https://github.com/WordPress/wordpress-develop/pull/12783

Props khokansardar, iqbal1hossain, gulamdastgir04, darshitrajyaguru97, afercia.
Fixes #65768.

File:
1 edited

Legend:

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

    r61652 r63532  
    426426}
    427427
    428 .mce-btn.mce-active,
    429 .mce-btn.mce-active button,
    430 .mce-btn.mce-active:hover button,
    431 .mce-btn.mce-active i,
    432 .mce-btn.mce-active:hover i {
     428/*
     429 * TinyMCE appends its skin stylesheet when the editor initializes. The skin may
     430 * be parsed after this stylesheet. The extra `mce-toolbar` class gives these
     431 * selectors a higher specificity than the skin's white active state, so that
     432 * the styling no longer depend on source order.
     433 */
     434.mce-toolbar .mce-btn.mce-active,
     435.mce-toolbar .mce-btn.mce-active button,
     436.mce-toolbar .mce-btn.mce-active:hover button,
     437.mce-toolbar .mce-btn.mce-active i,
     438.mce-toolbar .mce-btn.mce-active:hover i {
    433439        color: inherit;
    434440}
Note: See TracChangeset for help on using the changeset viewer.