Repository navigation
Add a shared max-width variable for body text - #17427
Open
stephaniehobson wants to merge 1 commit into
Open
stephaniehobson wants to merge 1 commit into
stephaniehobson wants to merge 1 commit into
Conversation
stephaniehobson
added this pull request to stack #17428
October 6, 2026 17:15
stephaniehobson
force-pushed
the
text-body-max-cols
branch
from
October 6, 2026 17:59
ff9ae9c to
a99d541
Compare
stephaniehobson
force-pushed
the
text-body-max-cols
branch
2 times, most recently
from
October 6, 2026 21:20
4614be6 to
8235ba9
Compare
stephaniehobson
force-pushed
the
text-body-max-cols
branch
from
October 6, 2026 22:13
8235ba9 to
6a44540
Compare
stephaniehobson
force-pushed
the
text-body-max-cols
branch
from
October 6, 2026 22:33
6a44540 to
d25bdd5
Compare
stephaniehobson
force-pushed
the
text-body-max-cols
branch
2 times, most recently
from
October 7, 2026 04:21
4af39fd to
0e5ecf6
Compare
stephaniehobson
force-pushed
the
text-body-max-cols
branch
from
October 7, 2026 14:10
0e5ecf6 to
d53d2f5
Compare
stephaniehobson
force-pushed
the
text-body-max-cols
branch
from
October 7, 2026 16:44
d53d2f5 to
a34ffa6
Compare
stephaniehobson
force-pushed
the
text-body-max-cols
branch
2 times, most recently
from
October 7, 2026 17:05
d9f5d52 to
4f71932
Compare
stephaniehobson
marked this pull request as ready for review
October 7, 2026 19:28
stephaniehobson
force-pushed
the
text-body-max-cols
branch
from
October 7, 2026 23:08
4f71932 to
b9a558c
Compare
stephaniehobson
force-pushed
the
text-body-max-cols
branch
from
October 7, 2026 23:21
b9a558c to
00dd77c
Compare
stephaniehobson
force-pushed
the
text-body-max-cols
branch
from
October 8, 2026 14:12
00dd77c to
66ef4bc
Compare
Adds $text-body-max-cols (8 of 12 grid columns, about 912px at the 1440px content max) in m24 vars/_text.scss, following the $text-title-* / $text-body-* convention. Components that would otherwise fill all 12 columns use it to keep lines a readable length: - longform at lg: page-grid() max-width, and the article image + caption's sub-grid() context (unchanged, was 8) - prose at lg: single-column body span (unchanged, was 8; the column rules now use span syntax) - intro body text and showcase body text at xl: max-width (was 9) The only compiled change is intro and showcase body text at xl (min-width 1312px), which narrows from 9 to 8 columns. The mozilla-ads and mozilla-anonym bundles also change because they include m24/base, but those pages don't render intros or showcases. Manual review at xl (1312px and wider), and once below it to confirm no change: - Homepage: intros and showcase sections. - CMS About us page and /about/manifesto/ (showcase and prose). - A Freeform page with intro-style, showcase and prose blocks. - An Article page with an intro, text, and an image + caption.
stephaniehobson
force-pushed
the
text-body-max-cols
branch
from
October 8, 2026 14:13
66ef4bc to
f35cc36
Compare
This branch has not been deployed
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.
One-line summary
Body-sized text has an unreadable line length at 100% of the site, so many components cap it. Turns out we've been capping it inconsistently, so... variable!
Significant changes and points to review
Issue / Bugzilla link
n/a
Testing
This change affects a number of static uses of the components. intro and showcase subheadings are expected to be a bit shorter now but otherwise everything should display right: