Skip to content

Add .modal-xxl size to modals - #43291

Merged
julien-deramond merged 1 commit into
v5-devfrom
v5-jd-modal-xxl
Nov 4, 2026
Merged

julien-deramond merged 1 commit into
v5-devfrom
v5-jd-modal-xxl

Conversation

@julien-deramond

@julien-deramond julien-deramond commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

Closes #39433

Modals stop at .modal-xl, so there is no size that matches the xxl container. This adds a fourth size, .modal-xxl (1320px, the width of the xxl container), with a $modal-xxl Sass variable and its documentation. It supersedes #39477 (by @TommasoAllegretti, approved but never merged, and now conflicting after the docs moved to Astro).

It is a port of #39477 onto the current v5-dev: the same SCSS, where .modal-xxl joins the lg and xl width rules and gets its own rule from the xxl breakpoint, and the same variable. The docs hunk moved to site/src/content/docs/components/modal.mdx (table row, button, snippet and example modal). Compiled bootstrap.css gains this:

@@ -5551,15 +5551,22 @@
 }
 @media (min-width: 992px) {
   .modal-lg,
-  .modal-xl {
+  .modal-xl,
+  .modal-xxl {
     --bs-modal-width: 800px;
   }
 }
 @media (min-width: 1200px) {
-  .modal-xl {
+  .modal-xl,
+  .modal-xxl {
     --bs-modal-width: 1140px;
   }
 }
+@media (min-width: 1400px) {
+  .modal-xxl {
+    --bs-modal-width: 1320px;
+  }
+}
 .modal-fullscreen {
   width: 100vw;
   max-width: none;

As discussed in the old PR, making the lg, xl and xxl modals fluid up to their max width is a separate change and is not done here. On the docs page, the new modal is 1320px wide from 1400px, 1140px from 1200px and 800px from 992px, and the other three sizes are unchanged.

The new size shows under "Optional sizes" on the deploy preview: https://deploy-preview-43291--twbs-bootstrap.netlify.app/docs/5.3/components/modal/#optional-sizes

🤖 Generated with Claude Code

Adds a fourth modal size, `.modal-xxl` (`1320px`, matching the xxl container), with a `$modal-xxl` Sass variable, and documents it.

Based on #39477 by @TommasoAllegretti.

Co-authored-by: TommasoAllegretti <allegretti.tommaso@gmail.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@julien-deramond
julien-deramond requested a review from a team as a code owner November 4, 2026 05:43
@julien-deramond julien-deramond added docs Documentation site and its content feature New feature, or a change to how an existing one works css Sass sources or compiled CSS v5 v5, the v5-dev branch labels Nov 4, 2026
@github-project-automation github-project-automation Bot moved this to Needs review in v5.4.0 Nov 4, 2026
@julien-deramond julien-deramond mentioned this pull request Nov 4, 2026
5 of 10 tasks
@julien-deramond julien-deramond linked an issue Nov 4, 2026 that may be closed by this pull request
2 tasks done
@julien-deramond
julien-deramond merged commit ea8d6a2 into v5-dev Nov 4, 2026
14 of 15 checks passed
@julien-deramond
julien-deramond deleted the v5-jd-modal-xxl branch November 4, 2026 05:47
@github-project-automation github-project-automation Bot moved this from Needs review to Done in v5.4.0 Nov 4, 2026
@julien-deramond julien-deramond added the backport-to-v6 Merged on v5, to backport to v6 label Nov 4, 2026
This was referenced Nov 4, 2026
@julien-deramond julien-deramond added the backport-done The backport is merged label Nov 4, 2026
@mdo mdo removed this from v5.4.0 Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-done The backport is merged backport-to-v6 Merged on v5, to backport to v6 css Sass sources or compiled CSS docs Documentation site and its content feature New feature, or a change to how an existing one works v5 v5, the v5-dev branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

modal-xxl size

1 participant