twbs / twbs/bootstrap

Grid System should support CSS Container Queries for responsive column sizing

Open
#37,807 20 comments 29 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

backport-to-v5 feature v6
Dominant language
MDX
Stars
175k
Forks
78.6k
Avg merge
7h 19m
Merged PRs (30d)
35

Description

Prerequisites
Proposal

CSS Container Queries are becoming widely supported.

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.