Skip to content

Add PreferredSourceButton#15217

Merged
JamieB-gu merged 2 commits intomainfrom
preferred-source-button
Jan 27, 2026
Merged

Add PreferredSourceButton#15217
JamieB-gu merged 2 commits intomainfrom
preferred-source-button

Conversation

@JamieB-gu
Copy link
Copy Markdown
Contributor

@JamieB-gu JamieB-gu commented Jan 26, 2026

For an upcoming test. This is just the button and stories; the integration into pages, and test configuration, will come in later changes.

Note that a number of CSS overrides are required because the design is different to Source's button styles.

Screenshots

To inspect in a browser and see more variations, like dark mode, you can either run storybook locally or view in Chromatic.

Mobile LeftCol Wide
preferred-source-mobile preferred-source-leftCol preferred-source-wide

For an upcoming test. This is just the button and stories; the
integration into pages, and test configuration, will come in later
changes.

Note that a number of CSS overrides are required because the design is
different to Source's button styles.
@JamieB-gu JamieB-gu requested a review from a team January 26, 2026 18:13
@JamieB-gu JamieB-gu added the feature Departmental tracking: work on a new feature label Jan 26, 2026
@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.

@JamieB-gu JamieB-gu linked an issue Jan 26, 2026 that may be closed by this pull request
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jan 26, 2026

Comment thread dotcom-rendering/src/paletteDeclarations.ts
Comment thread dotcom-rendering/src/components/PreferredSourceButton.tsx
@JamieB-gu JamieB-gu added the run_chromatic Runs chromatic when label is applied label Jan 26, 2026
@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label Jan 26, 2026
@JamieB-gu JamieB-gu added the run_chromatic Runs chromatic when label is applied label Jan 26, 2026
@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label Jan 26, 2026
Copy link
Copy Markdown

@petternitter petternitter left a comment

Choose a reason for hiding this comment

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

Looks all good to me from UI / link destination PoV

@JamieB-gu JamieB-gu merged commit 84d0e88 into main Jan 27, 2026
28 checks passed
@JamieB-gu JamieB-gu deleted the preferred-source-button branch January 27, 2026 10:54
@gu-prout
Copy link
Copy Markdown

gu-prout Bot commented Jan 27, 2026

Seen on PROD (merged by @JamieB-gu 9 minutes and 5 seconds ago) Please check your changes!

emma-imber pushed a commit that referenced this pull request Jan 28, 2026
For an upcoming test. This is just the button and stories; the
integration into pages, and test configuration, will come in later
changes.

Note that a number of CSS overrides are required because the design is
different to Source's button styles.
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.

Build the Preferred Source button

4 participants