Skip to content

Commit

Permalink
Add parameters to custom-scrollbars-on-hover (#49892)
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian committed Apr 18, 2023
1 parent 361f257 commit 7b8395e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions packages/base-styles/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -514,12 +514,9 @@
/* stylelint-enable function-comma-space-after */
}

@mixin custom-scrollbars-on-hover() {
@mixin custom-scrollbars-on-hover($handle-color, $track-color) {
visibility: hidden;

$handle-color: #757575;
$track-color: #1e1e1e;

// WebKit
&::-webkit-scrollbar {
width: 12px;
Expand Down
2 changes: 1 addition & 1 deletion packages/edit-site/src/components/sidebar/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
overflow-y: auto;

.components-navigator-screen {
@include custom-scrollbars-on-hover;
@include custom-scrollbars-on-hover($gray-700, $gray-900);
}
}

Expand Down

0 comments on commit 7b8395e

Please sign in to comment.