Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set scrollbar colors as global styles #1484

Merged
merged 5 commits into from
Nov 25, 2020
Merged

Conversation

aleksfront
Copy link
Contributor

@aleksfront aleksfront commented Nov 23, 2020

This PR simplifies using themable scrollbar colors and eliminates of using sass custom-scrollbar mixin.

From now extensions will also use custom scrollbars defined in global styles for sake of consisten view across all Lens components.

chart details
sidebar
logs

Fixes #1337
Fixes #1483
Part of #1298

@aleksfront aleksfront requested review from ixrock and a team November 23, 2020 11:04
Signed-off-by: Alex Andreev <[email protected]>
@aleksfront aleksfront requested a review from Nokel81 November 24, 2020 18:39
Copy link
Contributor

@ixrock ixrock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

}

overflow-y: overlay !important;
overflow-y: overlay!important;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why !important?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It overrides overflow: auto inline styles defined by VirtualList component.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or by react-window internals did you mean?

@aleksfront aleksfront merged commit 2da598b into master Nov 25, 2020
@aleksfront aleksfront deleted the custom-scrollbars-globally branch November 25, 2020 07:25
@jakolehm jakolehm mentioned this pull request Nov 25, 2020
@stefcameron
Copy link
Contributor

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unnecessary scrollbars in Drawer Theme-based scrollbar background colors and sizes are hardcoded in SCSS
4 participants