Skip to content

Skeleton's default scrollbar styles may not affect scrollable containers #3717

@endigo9740

Description

@endigo9740

Current Behavior

Defined here:

https://github.com/skeletonlabs/skeleton/blob/main/packages/skeleton/src/base/globals.css#L13

Currently styles the default body element, but may not be affecting child elements on the page that are allowed to scroll with overflow.

At least according to this MDN doc:

https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-width#examples

Expected Behavior

We should research to test and confirm. If it is the case that container elements don't inherit the scroll styles, we should add a new class called .preset-scroller to allow users to implement this overflow containers.

:root, .preset-scroller { ... }

Steps To Reproduce

No response

Link to Reproduction / Stackblitz

No response

Environment Information

No response

More Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions