Make WordPress Core

Changeset 61831


Ignore:
Timestamp:
03/04/2026 08:42:55 PM (3 weeks ago)
Author:
joedolson
Message:

Themes: Remove background on active theme actions.

The background behind theme actions for the active theme was still visible when no actions were available, such as with a disabled customizer. Removing the background on this container improves the design of the active theme card by simplifying the layout and prevents the appearance of an error if no actions are available.

Remove background and inset box shadow for the .theme.active .theme-actions container on the active theme.

Props awetz583, huzaifaalmesbah, noruzzaman, shailu25, joedolson.
Fixes #64720.

Location:
trunk/src/wp-admin/css
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/customize-controls.css

    r61782 r61831  
    17481748.wp-customizer .theme-browser .theme .theme-actions {
    17491749    padding: 9px 15px;
     1750}
     1751
     1752.theme-browser .theme:not(.active) .theme-actions {
    17501753    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.1);
    17511754}
  • trunk/src/wp-admin/css/themes.css

    r61741 r61831  
    254254
    255255.theme-browser .theme.active .theme-actions {
    256     background: rgba(44, 51, 56, 0.7);
     256    background: transparent;
    257257    border-left: none;
    258258    opacity: 1;
     259}
     260
     261.theme-browser .theme.active .theme-actions .button-primary {
     262    border-color: #fff;
    259263}
    260264
     
    270274    right: 0;
    271275    padding: 9px 12px;
     276}
     277
     278.theme-browser .theme:not(.active) .theme-actions {
    272279    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.1);
    273280}
Note: See TracChangeset for help on using the changeset viewer.