Scroll area
Keep long content within a bounded, keyboard-scrollable area.
Project updates
Research notes and early concepts are ready to review.
The team has shared feedback on the first draft.
Next, refine the details and prepare the final handoff.
All project resources are available to the team.
Recommended API
| Property or element | Type | Example initial value | Description |
|---|---|---|---|
tabindex | Integer | 0 | Make the scrolling region reachable by keyboard. |
aria-label | Text | Project updates | Give the region an accessible name. |
States
| State | Trigger | Result |
|---|---|---|
overflowing | Render more content than fits vertically. | The content scrolls within the bounded container. |
Svelte implementation guidance
Keep overflow scrollable with pointer, touch and keyboard; give a focusable region an accessible name.
Use semantic HTML and preserve keyboard access. Adapt the example to the project conventions.
CSS variables
| Variable | Type | Default | Description |
|---|---|---|---|
--q-text | color | #28302a | Main text and foreground color. |
--q-muted | color | #70776f | Color for secondary text. |
--q-font-size | length | 13px | Base size for the component text. |
--q-border | color | #dce0d8 | Color for outlines and dividers. |
--q-radius | length | 10px | Base corner radius. |
--q-gap | length | calc(var(--q-space) * 2) | Space between items, based on the spacing unit. |
--q-accent | color | #344e41 | Accent for active controls, indicators and focus. |
--q-space | length | 4px | Base unit for gaps and padding. |