Skip to content

Commit

Permalink
fix: issues with snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
nmerget committed Oct 23, 2023
1 parent 6c9a392 commit 098910e
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 21 additions & 5 deletions packages/components/src/components/textarea/textarea.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,20 @@ $scrollbar-width: 12px;
@extend %default-transition;
z-index: 3;
inline-size: $scrollbar-width;
background-color: colors.$db-current-bg-color;
background-color: colors.$db-base-bg;
border-start-end-radius: component.$default-border-radius;
}

&:hover {
&::-webkit-scrollbar-track,
&::-webkit-scrollbar-button:single-button,
&::-webkit-resizer {
@include colors.get-variant-bg-color(0.16);
}
}

&::-webkit-scrollbar-track {
@include colors.get-variant-bg-color(0);
@include colors.get-variant-bg-color(0.08);
border-end-end-radius: component.$default-border-radius;
}

Expand All @@ -67,6 +75,7 @@ $scrollbar-width: 12px;
/* Buttons */
&::-webkit-scrollbar-button:single-button {
@include colors.bg-transparent-interactive(false);
@include colors.get-variant-bg-color(0.08);
background-size: $scrollbar-width;
background-repeat: no-repeat;
background-position: center;
Expand All @@ -83,7 +92,7 @@ $scrollbar-width: 12px;
}

&::-webkit-resizer {
@include colors.get-variant-bg-color(0);
@include colors.get-variant-bg-color(0.08);
background-size: $scrollbar-width;
background-repeat: no-repeat;
background-position: center;
Expand All @@ -93,7 +102,7 @@ $scrollbar-width: 12px;

&::-webkit-scrollbar-corner {
@extend %default-transition;
background-color: colors.$db-current-bg-color;
background-color: colors.$db-base-bg;
border-end-end-radius: calc(#{component.$default-border-radius});
}
}
Expand Down Expand Up @@ -121,16 +130,23 @@ $scrollbar-width: 12px;
&::before {
@extend %default-transition;
@include get-scrolling-workaround();
background-color: colors.$db-current-bg-color;
background-color: colors.$db-base-bg;
}

&::after {
@extend %component-border;
@include get-scrolling-workaround();
@include colors.get-variant-bg-color(0.08);
z-index: 1;
border-block-end: none;
border-inline-end: none;
}

&:has(textarea:enabled:hover) {
&::after {
@include colors.get-variant-bg-color(0.16);
}
}
}
}
}

0 comments on commit 098910e

Please sign in to comment.