Skip to content

World Cup 2026 tagged article navigation#15956

Merged
Jakeii merged 13 commits into
mainfrom
jlk/world-cup-2026-subnav-articles
May 27, 2026
Merged

World Cup 2026 tagged article navigation#15956
Jakeii merged 13 commits into
mainfrom
jlk/world-cup-2026-subnav-articles

Conversation

@Jakeii
Copy link
Copy Markdown
Member

@Jakeii Jakeii commented May 22, 2026

What does this change?

Create a variant of the header added in #15714 for articles without the header, instead with a prominent first nav item with an icon.

There's a different colour scheme for apps, and the component needs to become an island so that it can disable the native app "swipe to next article" feature when interactive with the nav.

Why?

Work related to #15704

Screenshots

Mobile Desktop
Screenshot 2026-05-26 at 10 11 22 Screenshot 2026-05-26 at 10 11 48
App Light App Dark
Simulator Screenshot - iPhone 17 Pro - 2026-05-26 at 10 12 09 Simulator Screenshot - iPhone 17 Pro - 2026-05-26 at 10 12 50

@Jakeii Jakeii requested a review from a team as a code owner May 22, 2026 07:31
@Jakeii Jakeii marked this pull request as draft May 22, 2026 07:31
@github-actions
Copy link
Copy Markdown

Hello 👋! When you're ready to run Chromatic, please apply the run_chromatic label to this PR.

You will need to reapply the label each time you want to run Chromatic.

Click here to see the Chromatic project.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 22, 2026

@Jakeii Jakeii added documentation Documentation needed or being created and removed documentation Documentation needed or being created labels May 22, 2026
@Jakeii Jakeii added feature Departmental tracking: work on a new feature run_chromatic Runs chromatic when label is applied labels May 22, 2026
@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label May 22, 2026
@Jakeii Jakeii added this to the World Cup 2026 milestone May 22, 2026
@Jakeii Jakeii changed the title World cup 2026 tagged article nav World Cup 2026 tagged article navigation May 26, 2026
@Jakeii Jakeii self-assigned this May 26, 2026
@Jakeii Jakeii added the run_chromatic Runs chromatic when label is applied label May 26, 2026
@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label May 26, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 26, 2026

@petternitter petternitter requested review from a team and removed request for a team May 26, 2026 10:21
@Jakeii Jakeii force-pushed the jlk/world-cup-2026-subnav-articles branch from 0d59a78 to 8b565eb Compare May 26, 2026 18:03
},
] satisfies DirectoryPageNavConfig[];

const getPlatformColour = (
Copy link
Copy Markdown
Member Author

@Jakeii Jakeii May 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what I came up with to support the different colour on apps, I did consider it might be better to extend the palette declaration to support different colours based on renderingTarget, but if this is the only case where we need it probably it's not worth the extra complexity.

Also a different app component entirely didn't seem like the right move either as it's just colours that are different!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your solutions looks very sensible to me 👍

};

export const DirectoryPageNavIsland = (args: Props) => (
<Island priority="feature" defer={{ until: 'visible' }}>
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It now needs to be an island so it can disable the native article "swipe to next article" when scrolling the nav via bridget.

@Jakeii Jakeii added the run_chromatic Runs chromatic when label is applied label May 27, 2026
@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label May 27, 2026
@Jakeii Jakeii marked this pull request as ready for review May 27, 2026 07:57
@Jakeii Jakeii linked an issue May 27, 2026 that may be closed by this pull request
Copy link
Copy Markdown
Contributor

@marjisound marjisound left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great 🎉

pageTags?: TagType[];
};

export const DirectoryPageNavIsland = (args: Props) => (
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you created this component to avoid repeating to wrap the component by Island in all the places it's used?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You caught me 🤠

Comment thread dotcom-rendering/src/lib/WorldCup2026Icons.tsx
},
] satisfies DirectoryPageNavConfig[];

const getPlatformColour = (
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your solutions looks very sensible to me 👍

@Jakeii Jakeii merged commit fa1106e into main May 27, 2026
46 of 51 checks passed
@Jakeii Jakeii deleted the jlk/world-cup-2026-subnav-articles branch May 27, 2026 13:50
@gu-prout
Copy link
Copy Markdown

gu-prout Bot commented May 27, 2026

Seen on PROD (merged by @Jakeii 8 minutes and 12 seconds ago) Please check your changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Departmental tracking: work on a new feature Seen-on-PROD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Assess and adapt tournament header/nav for World Cup 2026

3 participants