question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Scrollbar not applying theme

See original GitHub issue

Issue type

I’m submitting a … (check one with “x”)

  • bug report
  • feature request

Issue description

Current behavior:

Scrollbars in nebular 4.6.0 are not applying theme. This applies to all scrollbars except for the scrollbar on NbSidebar.

Expected behavior:

Scrollbars should apply theme, as they did in Nebular 3.6.2 and as the scrollbar on NbSidebar still does.

Steps to reproduce:

To see how it currently is: Go to NbListComponent in 4.6.0, make sure that version 4.6.0 is selected and switch between themes in the first basic example. Note how toolbar remains unchanged by the theme switching. This is especially notable on dark and cosmic theme.

To see how it should be: Go to NbListComponent in 3.6.2 and switch between themes in the first basic example.

Related code:

Other information:

npm, node, OS, Browser

OS: macOs Catalina, Windows 10, Browser: Chrome, Safari

Angular, Nebular

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:4
  • Comments:6

github_iconTop GitHub Comments

4reactions
Aaron-Linkforcecommented, Dec 16, 2020

Hope it helps!

Hey @jgomesmv, thanks for that. Unfortunately for me I couldn’t get my environment to read the variables for the mixin, so I ended up adapting the styles and adding this in override.scss to emulate the basic look and feel of the inbuilt scrollbar like so:

::-webkit-scrollbar {
    width: 0.4rem;
  }

  ::-webkit-scrollbar-thumb {
    background:  nb-theme(background-basic-color-4);
    cursor: pointer;
    border-radius: 0.4rem;
  }

 ::-webkit-scrollbar-track {
    background: nb-theme(background-basic-color-2);
  }
1reaction
BlackXntcommented, Jan 8, 2020

@MSMetzger Were you able to find a workaround?

Read more comments on GitHub >

github_iconTop Results From Across the Web

html - web kit scrollbar not chaging until i hover over it when ...
In my webpage I am trying to get a custom scroll bar. It is working fine. Now I have a theme button which...
Read more >
::-webkit-scrollbar - CSS: Cascading Style Sheets | MDN
The ::-webkit-scrollbar CSS pseudo-element affects the style of an element's scrollbar when it has overflow:scroll; set.
Read more >
scrollbar - CSS-Tricks
If there is no qualifying selector preceding the various pseudo-elements, the styles will apply to any scrollbar that may appear on the page ......
Read more >
Make scrollbars more visible : IDEA-69682
With the default theme (Windows), the scrollbar horizontal or vertical is just TOO TRANSPARENT. I do not wish to switch to Darcula or...
Read more >
Scrollbars - Material Theme UI Documentation
By default, in the provided themes all the scrollbar properties have the same value. But you can easily specify a different border color,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found