Skip to content

Commit

Permalink
Patterns: correctly color code unsynced patterns titles in site editor (
Browse files Browse the repository at this point in the history
#52958)

Co-authored-by: Andrew Serong <[email protected]>
  • Loading branch information
glendaviesnz and andrewserong authored Jul 26, 2023
1 parent 168bce1 commit 1ca7922
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@ function TemplateDocumentActions( { className, onBack } ) {

return (
<BaseDocumentActions
className={ className }
className={ classnames( className, {
'is-synced-entity':
record.wp_pattern_sync_status !== 'unsynced',
} ) }
icon={ typeIcon }
onBack={ onBack }
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@
@include break-large() {
width: min(100%, 450px);
}

&.is-synced-entity {
.edit-site-document-actions__title {
color: var(--wp-block-synced-color);
h1 {
color: var(--wp-block-synced-color);
}
}
}
}

.edit-site-document-actions__command {
Expand All @@ -36,7 +45,6 @@

.edit-site-document-actions__title {
flex-grow: 1;
color: var(--wp-block-synced-color);
overflow: hidden;
grid-column: 2 / 3;

Expand All @@ -48,7 +56,6 @@
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: var(--wp-block-synced-color);
}

.edit-site-document-actions.is-page & {
Expand Down

0 comments on commit 1ca7922

Please sign in to comment.