Skip to content

Commit

Permalink
Toolbar: Adjust colors for dark mode support
Browse files Browse the repository at this point in the history
  • Loading branch information
SainathPoojary committed Feb 21, 2025
1 parent 563c891 commit 516373a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
8 changes: 4 additions & 4 deletions packages/components/src/toolbar/toolbar-group/style.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.components-toolbar-group {
min-height: $block-toolbar-height;
border-right: $border-width solid $gray-900;
background-color: $white;
border-right: $border-width solid $components-color-foreground;
background-color: $components-color-foreground-inverted;
display: inline-flex;
flex-shrink: 0;
flex-wrap: wrap;
Expand Down Expand Up @@ -41,8 +41,8 @@
.components-toolbar {
min-height: $block-toolbar-height;
margin: 0;
border: $border-width solid $gray-900;
background-color: $white;
border: $border-width solid $components-color-foreground;
background-color: $components-color-foreground-inverted;
display: inline-flex;
flex-shrink: 0;
flex-wrap: wrap;
Expand Down
9 changes: 3 additions & 6 deletions packages/components/src/toolbar/toolbar/style.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.components-accessible-toolbar {
display: inline-flex;
border: $border-width solid $gray-900;
border: $border-width solid $components-color-foreground;
border-radius: $radius-small;
flex-shrink: 0;

Expand All @@ -14,13 +14,11 @@
& > .components-toolbar-group {
border-right: none;
}

}
}

.components-accessible-toolbar,
.components-toolbar {

&[aria-orientation="vertical"] {
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -56,7 +54,7 @@
z-index: -1;

// Animate in.
@media not (prefers-reduced-motion) {
@media not ( prefers-reduced-motion ) {
animation: components-button__appear-animation 0.1s ease;
animation-fill-mode: forwards;
}
Expand All @@ -79,7 +77,7 @@
}

&::before {
background: $gray-900;
background: $components-color-foreground;
}
}

Expand All @@ -99,7 +97,6 @@
}
}


@keyframes components-button__appear-animation {
from {
transform: scaleY(0);
Expand Down

0 comments on commit 516373a

Please sign in to comment.