Skip to content

DS-084: Add container-query layout utilities and examples #495

Description

@IbrahimIjai

Context

Reusable dashboard components currently respond mostly to viewport width.
Cards, tables, and stat groups also need to adapt when placed in narrow panels
within a wide desktop viewport.

Scope

  • Define named container utilities for inline-size containment.
  • Add documented component breakpoints for compact, standard, and wide containers.
  • Demonstrate Card, StatGroup, toolbar, and table-toolbar adaptation in the gallery.
  • Provide graceful fallback behavior for unsupported or uncontained usage.

Acceptance criteria

  • Components respond to their parent container rather than only viewport media queries.
  • Container names avoid collisions when components are nested.
  • Layout changes do not alter document reading order.
  • Examples cover narrow sidebar, half-width panel, and full-width content placement.
  • Visual tests verify representative container widths in both themes.

Out of scope

  • Replacing every existing responsive utility.
  • JavaScript ResizeObserver-based layout switching.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave program

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions