Repository navigation
Add .modal-xxl size to modals - #43291
Merged
Merged
Conversation
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>
Closed
5 of 10 tasks
Closed
2 tasks done
This was referenced Nov 4, 2026
Closed
This was referenced Nov 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-xxlSass 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-xxljoins the lg and xl width rules and gets its own rule from the xxl breakpoint, and the same variable. The docs hunk moved tosite/src/content/docs/components/modal.mdx(table row, button, snippet and example modal). Compiledbootstrap.cssgains this: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