Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Modifying paper-listbox scrollbar #45

Open
madiganz opened this issue Jan 16, 2018 · 2 comments
Open

Modifying paper-listbox scrollbar #45

madiganz opened this issue Jan 16, 2018 · 2 comments

Comments

@madiganz
Copy link

Is it possible to modify the vertical scrollbar in a paper-listbox?

I currently see no mixin for this, and I have tried

#dropdown::-webkit-scrollbar-track {
    @apply --scrollbar-style;
}
#dropdown .dropdown-content::-webkit-scrollbar-track {
    @apply --scrollbar-style;
}
.dropdown-content::-webkit-scrollbar-track {
    @apply --scrollbar-style;
}

where --scrollbar-style is a custom style. Nothing seems to work.

@sebagr
Copy link

sebagr commented Feb 26, 2019

Any update on this one?

@msi-matthew
Copy link

msi-matthew commented Mar 8, 2021

If you add overflow-y: auto to the host property in paper-listbox the webkit selectors will work.

e.g.

:host {
        display: block;
        padding: 8px 0;

        background: var(--paper-listbox-background-color, var(--primary-background-color));
        color: var(--paper-listbox-color, var(--primary-text-color));

        @apply --paper-listbox;
        overflow-y: auto;
      }

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

No branches or pull requests

3 participants