-
Notifications
You must be signed in to change notification settings - Fork 30
Replace at a glance with scrollable carousel #15110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
oliverabrahams
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments, Very happy to chat through them.
25b2542 to
c8e84f7
Compare
…er the nav buttons - Increases the product threshold from 2 to 3 for the carosuel to render - Removes the at a glance which is added in Composer as we have it as part of the new rendered elements
- make carsouel an unordered list
|
Hello 👋! When you're ready to run Chromatic, please apply the You will need to reapply the label each time you want to run Chromatic. |
| products.length >= 3; | ||
|
|
||
| const insertCarouselPlaceholder = (elements: FEElement[]): FEElement[] => { | ||
| if (!Array.isArray(elements) || elements.length === 0) return []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't need this check here as it will return an empty array if it is empty and should always be an array think this relates to the TS issues you were having in the editor yday
| if (!Array.isArray(elements) || elements.length === 0) return []; |
| if (!inAtAGlanceSection) { | ||
| if (isAtAGlance(element)) { | ||
| inAtAGlanceSection = true; | ||
| atAGlanceElements = []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| atAGlanceElements = []; | |
| atAGlanceElements = [element]; |
I think we want to include the heading in the AAG elements here
Co-authored by: @emma-imber
What does this change?
Replaces the 'At a Glance' section at the top of a Filter article with a scrollable products carousel.
Summary of changes:
Why?
As part of the continuation of making improvements to The Filter articles this is a changes that we plan to A/B/C test to see whether it is worth implementing it throughout the publishing pipeline.
Screenshots
After

Before
