🧹 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.
🧹 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.