Aa/portrait layout continued 2 - #16504
Draft
alessiaAmitrano wants to merge 20 commits into
Draft
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR introduces new styling tokens and component-level styling adjustments to support an updated Immersive portrait presentation (headline/title/standfirst “furniture”), and threads layoutType into the standfirst so immersive variants can be styled differently.
Changes:
- Added new palette tokens for immersive portrait headline/title/standfirst colours.
- Passed
layoutTypeintoStandfirstand adjusted standfirst font/colour selection based on immersive layout type. - Updated immersive furniture components (title, series/section link, headline) to use the new immersive portrait tokens.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| dotcom-rendering/src/paletteDeclarations.ts | Adds new --immersive-portrait-* palette tokens to support portrait-specific furniture colours. |
| dotcom-rendering/src/layouts/StandardLayoutArticleGrid.tsx | Passes layoutType through to Standfirst so layout-specific styling can be applied. |
| dotcom-rendering/src/components/Standfirst.tsx | Adds layoutType prop and uses it to alter standfirst font/colour for immersive layouts. |
| dotcom-rendering/src/components/SeriesSectionLink.tsx | Adjusts immersive branch styling to use an immersive-portrait title text token. |
| dotcom-rendering/src/components/ArticleTitle.tsx | Adds immersive portrait wrapper styling/background for series/section furniture. |
| dotcom-rendering/src/components/ArticleMeta.web.tsx | Simplifies immersive layout detection using startsWith('immersive'). |
| dotcom-rendering/src/components/ArticleHeadline.tsx | Applies immersive portrait headline colour token for portrait immersive layouts. |
Suppressed comments (1)
dotcom-rendering/src/components/Standfirst.tsx:280
standfirstStylesswitches to the portrait palette key--immersive-portrait-standfirst-textwheneverlayoutTypestarts withimmersive, which includes immersiveLandscape layouts. That applies portrait colours to landscape immersives as well; if the styling is meant to be portrait-only, restrict the predicate to the portrait layout types.
const standfirstStyles = (
{ display, design, theme }: ArticleFormat,
layoutType?: LayoutType,
) => {
const isImmersivePortraitOrLandscape =
layoutType?.startsWith('immersive') ?? false;
switch (display) {
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+6099
to
+6102
| const immersivePortraitTitleTextLight: PaletteFunction = () => | ||
| sourcePalette.neutral[100]; | ||
| const immersivePortraitTitleTextDark: PaletteFunction = () => | ||
| sourcePalette.neutral[7]; |
Comment on lines
+88
to
+90
| const isLabs = theme === ArticleSpecial.Labs; | ||
| const isImmersivePortraitOrLandscape = | ||
| layoutType?.startsWith('immersive') ?? false; |
Comment on lines
+388
to
+392
| sectionLabelLink, | ||
| css` | ||
| color: ${titleColour}; | ||
| color: ${themePalette( | ||
| '--immersive-portrait-title-text', | ||
| )}; |
DanielCliftonGuardian
force-pushed
the
portrait-layout
branch
from
August 4, 2026 09:21
9c82546 to
8e1bd1a
Compare
alessiaAmitrano
marked this pull request as draft
August 18, 2026 09:21
…essia's portrait styling commits
DanielCliftonGuardian
force-pushed
the
aa/portrait-layout-continued-2
branch
from
August 19, 2026 13:05
553b7fc to
3acb139
Compare
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.
Introducing the new Immersive portrait styling for the furniture.
Before:

After:
