paper-listbox icon indicating copy to clipboard operation
paper-listbox copied to clipboard

Modifying paper-listbox scrollbar

Open madiganz opened this issue 7 years ago • 2 comments

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.

madiganz avatar Jan 16 '18 18:01 madiganz

Any update on this one?

sebagr avatar Feb 26 '19 14:02 sebagr

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;
      }

msi-matthew avatar Mar 08 '21 22:03 msi-matthew