-
Notifications
You must be signed in to change notification settings - Fork 30
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
base: main
Are you sure you want to change the base?
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: -1 B (0%) Total Size: 870 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
…c/three-tier-desktop-v1
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. |
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