Skip to content

Commit

Permalink
add slight border to provide better contrast on dark
Browse files Browse the repository at this point in the history
  • Loading branch information
richtabor committed Oct 25, 2024
1 parent 829bf06 commit 10d338c
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions packages/block-editor/src/components/block-tools/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,25 @@
background-color: $gray-900;
color: $gray-100;

&.block-editor-block-contextual-toolbar {
border-color: $gray-800;
}

button {
color: $gray-200;
background-color: $gray-900 !important;
color: $gray-300;

&:hover {
color: $white;
}

&:focus::before {
box-shadow: inset 0 0 0 1px $gray-900, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
}
}

.block-editor-block-parent-selector .block-editor-block-parent-selector__button {
border-color: $gray-800;
background-color: $gray-900;
}

.block-editor-block-switcher__toggle {
Expand All @@ -146,7 +158,7 @@

.components-toolbar-group,
.components-toolbar {
border-right-color: $gray-700 !important;
border-right-color: $gray-800 !important;
}

.is-pressed {
Expand Down

0 comments on commit 10d338c

Please sign in to comment.