Skip to content

Investigate using scroll state queries when available in browsers #2922

@rajsite

Description

@rajsite

🧹 Tech Debt

We have several spots where we attempt to detect the scroll state of a container such as scrollable behaviors on tabs, breadcrumb, and stepper. The tabs and breadcrumb rely on compact placement of items and a resize observer on the item container to detect overflow. The stepper items fill their container space and instead rely on an intersection observer registered on each item and their occlusion with the container.

Once browsers have native scroll state queries we can potentially unify both patterns and just detect when the container itself is scrollable or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    tech debttriageNew issue that needs to be reviewed

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions