Skip to content

Commit

Permalink
Global styles revisions: fix is-selected rules from affecting other a…
Browse files Browse the repository at this point in the history
…reas of the editor (#58228)
  • Loading branch information
andrewserong authored Jan 25, 2024
1 parent c83aeb9 commit 6debfcf
Showing 1 changed file with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,25 @@
// This border serves as a background color in Windows High Contrast mode.
border: 4px solid transparent;
}

&.is-selected {
border-radius: $radius-block-ui;

// Only visible in Windows High Contrast mode.
outline: 3px solid transparent;
outline-offset: -2px;

color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));
background: rgba(var(--wp-admin-theme-color--rgb), 0.04);

.edit-site-global-styles-screen-revisions__revision-button {
opacity: 1;
}

.edit-site-global-styles-screen-revisions__date {
color: var(--wp-admin-theme-color);
}

&::before {
background: var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));
}
Expand Down Expand Up @@ -81,17 +93,6 @@
}
}

.is-selected {
color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));
background: rgba(var(--wp-admin-theme-color--rgb), 0.04);
.edit-site-global-styles-screen-revisions__revision-button {
opacity: 1;
}
.edit-site-global-styles-screen-revisions__date {
color: var(--wp-admin-theme-color);
}
}

.edit-site-global-styles-screen-revisions__apply-button.is-primary,
.edit-site-global-styles-screen-revisions__applied-text {
align-self: flex-start;
Expand Down

0 comments on commit 6debfcf

Please sign in to comment.