Skip to content

Commit

Permalink
Update collapsed panel indicator.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen committed Dec 2, 2021
1 parent 4f73402 commit 60090c3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/block-editor/src/components/colors-gradients/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
}

.block-editor-panel-color-gradient-settings {
.component-color-indicator {
vertical-align: text-bottom;
}
.block-editor-panel-color-gradient-settings__panel-title {
display: flex;

&__panel-title {
.component-color-indicator {
display: inline-block;
width: $grid-unit-15;
height: $grid-unit-15;
align-self: center;
}
}

Expand Down
1 change: 1 addition & 0 deletions packages/components/src/color-indicator/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
border: $border-width solid $gray-300;
display: inline-block;
padding: 0;
margin-left: $grid-unit-15;
}
2 changes: 2 additions & 0 deletions packages/edit-site/src/components/global-styles/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
margin: $grid-unit-20;

.component-color-indicator {
margin-left: 0;

// Show a diagonal line (crossed out) for empty swatches.
background: linear-gradient(-45deg, transparent 48%, $gray-300 48%, $gray-300 52%, transparent 52%);
}
Expand Down

0 comments on commit 60090c3

Please sign in to comment.