Skip to content

Swap subnav with World Cup 2026 subnav on tagged articles#15823

Closed
DanielCliftonGuardian wants to merge 9 commits into
mainfrom
World-cup-sub-nav-articles
Closed

Swap subnav with World Cup 2026 subnav on tagged articles#15823
DanielCliftonGuardian wants to merge 9 commits into
mainfrom
World-cup-sub-nav-articles

Conversation

@DanielCliftonGuardian
Copy link
Copy Markdown
Contributor

@DanielCliftonGuardian DanielCliftonGuardian commented May 7, 2026

What does this change?

This PR introduces a tailored sub-navigation experience for content related to the 2026 World Cup. It hides the default main sub-navigation and replaces it with a dedicated tournament subnav on any article featuring the football/world-cup-2026 tag.

Added a new configuration for the World Cup 2026 to DirectoryPageNav.tsx. Introduced a subnav variant that renders a horizontally scrollable list of context-specific links (e.g., Match centre, Player guide, Bracketology, Golden boot) Added new CSS styling (subnavInnerStyles, subnavListStyles, etc.) to match the alignment, borders, and breakpoints of the standard Masthead navigation.

Layout modifications: Updated all standard article layouts (AudioLayout, CommentLayout, LiveLayout, PictureLayout, ShowcaseLayout, and StandardLayout) to conditionally pass showSubNav={false} when the football/world-cup-2026 tag is present.

Why?

To provide an immersive, contextual navigation experience for the 2026 World Cup. By swapping the standard subnav for tournament-specific links, we improve discoverability for readers, allowing them to easily jump between live matches, guides, and stats.

Part of #15704

Screenshots

image

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 14, 2026

@DanielCliftonGuardian DanielCliftonGuardian added the feature Departmental tracking: work on a new feature label May 15, 2026
@DanielCliftonGuardian DanielCliftonGuardian added this to the World Cup 2026 milestone May 15, 2026
@DanielCliftonGuardian DanielCliftonGuardian self-assigned this May 15, 2026
@DanielCliftonGuardian DanielCliftonGuardian changed the title World cup sub nav articles WIP Swap subnav with World Cup 2026 subnav on tagged articles May 15, 2026
@HarryFischer
Copy link
Copy Markdown
Contributor

PR to add small icon next to WorldCup:
#15913

This PR needs the slim nav style changes (spacing, goes edge to edge on scroll and gradient on right on mobile) from this deeper nav PR
#15714

{config.links.map((link) => (
<li key={link.label} css={subnavListItemStyles}>
<a
href={`/${link.id}`}
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.

I wonder if – as a small convenience – we could hide the link if it doesn't have an id yet (i.e. because the underlying article hasn't been published and the URL doesn't exist)

@Jakeii Jakeii force-pushed the World-cup-sub-nav-articles branch from 143d56c to 0c395c1 Compare May 21, 2026 08:51
@Jakeii
Copy link
Copy Markdown
Member

Jakeii commented May 22, 2026

closing in favour of #15956 which is based on the header for fronts in #15714

@Jakeii Jakeii closed this May 22, 2026
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants