Grid System should support CSS Container Queries for responsive column sizing
Nobody has claimed this yet.
- Dominant language
- MDX
- Stars
- 175k
- Forks
- 78.6k
- Avg merge
- 7h 19m
- Merged PRs (30d)
- 35
Description
Prerequisites
- I have searched for duplicate or closed feature requests
- I have read the contributing guidelines
Proposal
CSS Container Queries are becoming widely supported.
- https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Container_Queries
- https://caniuse.com/css-container-queries
Proposal: _breakpoints.scss should be extended to be configurable to use container queries, perhaps defaulting to the body or falling back to media queries where appropriate for backwards compatibility.
Motivation and context
I have pages that can be displayed in either modal or full-page and currently there isn't a good way to wire up this sort of functionality.
Layouts with collapsible side navigation or modal dialogs would benefit from Container Queries instead of using normal Media Queries for responsive widths.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing _breakpoints.scss and the existing grid breakpoint behavior. Determine how container queries could be made configurable while preserving media-query fallback for backwards compatibility. Done means modal, full-page, and nested layouts can use responsive column sizing without relying only on viewport width.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, scss
- Domain
- frontend, web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100