scroll-areas

Solid

Scroll areas inside a layout should be avoided wherever possible. When unavoidable, allow only one scroll axis at a time and always keep the user in control. Use when designing layouts, data tables, panels, or any component that might introduce an inner scroll container.

Web & Frontend 31 stars 5 forks Updated 2 days ago MIT

Install

View on GitHub

Quality Score: 85/100

Stars 20%
50
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Scroll Areas ## Avoid Scroll Areas by Default Scroll containers inside a layout — panels, drawers, tables, modals with inner overflow — create friction. Users must discover that a region scrolls, manage multiple independent scroll positions simultaneously, and context-switch between scroll areas on the same screen. **Default: let the page scroll.** A single page-level scroll is universally understood and requires no discovery. Before introducing an inner scroll area, ask whether the layout can be restructured so the page itself handles the overflow. Alternatives to inner scroll: - Pagination or load-more for long lists - Collapsible sections (accordion) for long detail panels - A separate page or route for content that would otherwise fill a scroll area - Progressive disclosure — show less by default, expand on demand ## When a Scroll Area Is Justified Some layouts genuinely require inner scroll: - **Fixed-height sidebars** with navigation trees longer than the viewport - **Data tables** where the header must remain visible while rows scroll - **Chat or log panels** where the stream is continuous and the surrounding layout is fixed - **Code editors or terminal panes** embedded in a larger application shell In these cases, proceed — but apply the constraints below. ## One Axis Only Never create a scroll container that scrolls on both axes simultaneously. Two-axis scroll is disorienting, hard to control precisely, and nearly unusable on touch devices. ```css /* One...

Details

Author
dembrandt
Repository
dembrandt/dembrandt-skills
Created
3 months ago
Last Updated
2 days ago
Language
JavaScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category