Skip to content

Conversation

@marjisound
Copy link
Contributor

@marjisound marjisound commented Nov 7, 2025

What does this change?

This PR adds a new component ScrollableSmallOnwards. This component is used for onwards. Currently as part of this PR, the new component is only used for Gallery articles. But the future plan is to migrate all the rest of articles to use the new design.

To implement this component, I followed similar pattern that's done in front container ScrollableSmall container.

Why

This change is a re-design of the onwards container. Currently as part of this PR, the re-design is only applied for the Gallery onwards containers, but the future plan is to do this for all article.

Screenshots

Desktop

Before After
before after

Mobile

Before After
before2 after2

This PR fixes #14313

@marjisound marjisound force-pushed the gallery-onwards-secondary-container branch from 7424d2b to 81ae393 Compare November 7, 2025 13:45
@github-actions
Copy link

github-actions bot commented Nov 7, 2025

@github-actions
Copy link

github-actions bot commented Nov 7, 2025

@marjisound marjisound force-pushed the gallery-onwards-secondary-container branch 2 times, most recently from 1fd4cb7 to 9c23a75 Compare November 7, 2025 17:57
@marjisound marjisound added the run_chromatic Runs chromatic when label is applied label Nov 7, 2025
@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Nov 7, 2025
linkTo: string;
format: ArticleFormat;
/** The format of the article holding the card */
contextFormat?: ArticleFormat;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This prop lets us know which article design the card belongs to when it's displayed as onwards content. Because currently we have a re-design for onward contents cards which is only applied on Gallery articles.

Once the redesign is rolled out to all article types, this prop can be removed.

format,
dataLinkName: getDataLinkNameCard(format, '0', index),
};
};
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added this function that will create the dcr trail type using the master image rather than the image field. We need to make this chaneg for all the trail types but since that change needs a bit of testing, I decided not to include it in this PR as it's out of the scope.

Added a function to generate the DCR trail type using the master image rather than the image field. The same update will be needed for all trail types, but that requires more testing and is out of scope for this PR, so I've left that change to be done separately.

I've also created this ticket for changing all trail types into using the master image url. #14813

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There's also another ticket to deal with the altText which is currently set to empty string #14628

@marjisound marjisound requested review from a team and abeddow91 November 10, 2025 09:35
@marjisound marjisound added this to the Decommission AR milestone Nov 10, 2025
@marjisound marjisound marked this pull request as ready for review November 10, 2025 09:37
@github-actions
Copy link

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.

@marjisound marjisound self-assigned this Nov 10, 2025
border-top: 1px solid
${isGalleryOnwardContent
? palette('--onward-content-border')
: palette('--card-border-top')};
Copy link
Contributor Author

@marjisound marjisound Nov 10, 2025

Choose a reason for hiding this comment

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

Because of this change, all the Card stories are showing diffs in the Chromatic snapshots. The visual design hasn’t changed, only the generated Emotion class names have.

@JamieB-gu JamieB-gu modified the milestones: Decommission AR, Requests Nov 10, 2025
@petternitter
Copy link

Is there a way to preview this change @marjisound? From the after screenshots, it looks like the margin/padding is a bit tight and that it's got some inconsistency depending on elements within the card.

@marjisound marjisound marked this pull request as draft November 10, 2025 16:06
@marjisound marjisound force-pushed the gallery-onwards-secondary-container branch from 9c23a75 to 1519a2d Compare November 17, 2025 16:52
@marjisound marjisound added the run_chromatic Runs chromatic when label is applied label Nov 17, 2025
@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Nov 17, 2025
@marjisound marjisound added the run_chromatic Runs chromatic when label is applied label Nov 18, 2025
@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Nov 18, 2025
@marjisound marjisound force-pushed the gallery-onwards-secondary-container branch from 96d92be to 64f27a4 Compare November 18, 2025 08:40
@marjisound marjisound added the run_chromatic Runs chromatic when label is applied label Nov 18, 2025
@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Nov 18, 2025
@marjisound marjisound force-pushed the gallery-onwards-secondary-container branch from 64f27a4 to 3d7ad15 Compare November 18, 2025 08:47
@marjisound marjisound added the run_chromatic Runs chromatic when label is applied label Nov 18, 2025
@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Nov 18, 2025
@marjisound marjisound added the run_chromatic Runs chromatic when label is applied label Nov 18, 2025
@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Nov 18, 2025
@marjisound marjisound added the run_chromatic Runs chromatic when label is applied label Nov 18, 2025
@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Nov 18, 2025
@shesah shesah modified the milestones: Requests, Decommission AR Nov 18, 2025
@marjisound marjisound force-pushed the gallery-onwards-secondary-container branch from a7892c3 to fdf516e Compare November 21, 2025 08:43
@marjisound
Copy link
Contributor Author

Closing this PR in favour of #14894 which follows a different approach

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feasibility: Replace 'More on this story' with new layout

5 participants