-
Notifications
You must be signed in to change notification settings - Fork 31
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
Three Tier on Banner (V1) #13041
Three Tier on Banner (V1) #13041
Conversation
…bile as the boolean isn't in the right place export a lot of the exisiting logic as we're reusing a lot of functionality
Size Change: 0 B Total Size: 871 kB ℹ️ View Unchanged
|
minor mobile spacing
}: BannerRenderProps): JSX.Element => { | ||
const isTabletOrAbove = useMatchMedia(removeMediaRulePrefix(from.tablet)); | ||
const isDesktopOrAbove = useMatchMedia(removeMediaRulePrefix(from.desktop)); |
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.
This is required so we don't display the logo on the tablet breakpoint
fixed spacing issues
|
||
${from.tablet} { | ||
display: grid; | ||
grid-template-columns: 1fr 280px; | ||
grid-template-columns: 1fr 1fr 1fr; |
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.
If this isn't set like this the columns on either side collapse and the content which isn't correct. I think a chat with design would be helpful to get the widths of those columns.
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. |
Updated storybook to reflect accurate background colour
<div css={styles.priceHeadline}>£12/month</div> | ||
<div> | ||
<LinkButton | ||
href={'https://support.theguardian.com/contribute'} // URL will need to be updated |
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.
The URLs will be updated before this test is launched https://trello.com/c/kCh5Nn02/354-setup-ab-testing-of-new-banner-design
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.
card to make change to URLs https://trello.com/c/84LDsJsG/384-update-urls-on-new-banner-designs
…c/three-tier-desktop-v1
Seen on PROD (merged by @charleycampbell 7 minutes and 45 seconds ago) Please check your changes! |
What does this change?
This is the second PR in the effort to rework designable banners on tablet and desktop breakpoints.
Further refinements have been made to use CSS Grid, ensuring the layout adapts to the distinct designs for each breakpoint. The new designs have a different layout on the banner for desktop and above, tablet and from phablet and small.
Introduced a new file for Three-Tier Choice Cards, as the existing implementation couldn't be reused due to the new design placing the button directly on the choice card.
There are a few open design considerations/questions that will need input when work on this project resumes. These can be found here. Also helpful to note, this isn't being used anywhere.
Why?
Part of the work on refreshing the banners and goes along with Mobile breakpoint V1 based off of this Figma
Screenshots
Tablet:

Desktop

Wide
