-
Notifications
You must be signed in to change notification settings - Fork 291
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
Enhancement/8895 km setup cta banner #9105
Enhancement/8895 km setup cta banner #9105
Conversation
Build files for 5cc6da8 have been deleted. |
This comment was marked as resolved.
This comment was marked as resolved.
Failing jest test has an open issue #9316 and is not related to this change |
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.
@zutigrm looks like the new design doesn't match how it looks in Figma. Could you please check it again and ensure that it looks correctly.
@eugene-manuilov hm, not sure what you mean, for example here is the screenshot from the desktop layout from figma design Here is the screenshot of the KMW widget from the dashboard of the current branch: Also for other screens, styling is following the designs from figma. The only difference I just noticed is the that Perhaps you checked different figma link? |
@zutigrm take a look at the large version of the vrt screenshot ( |
@eugene-manuilov Couldn't find which resolution The desktop layout is styled to match the real desktop screens from 1280px, everything bellow that is fitting the tablet layout (per figma design), as desktop layout due to the text falling in more lines expands the height and doesn't look eye pleasing on big tablet sizes like it looks on desktop screens. Now I can try to implement some custom size bellow 1280px (didn't find any desktop screen bellow 1280px in real usage) to squeeze somehow desktop layout only for the VRT purposes, but that will not do much for real life users, since layout is already optimised for them. WDYT? |
@zutigrm based on our scss settings we consider screen sizes as desktop ones for everything that is bigger than 960px: site-kit-wp/assets/sass/config/_variables.scss Lines 263 to 269 in 047b543
It means that CTA banner design should account for it and use the desktop version for everything that equals or bigger than 960px. |
@eugene-manuilov Yes, that's where the difference lies, we do usually use |
'Track progress towards your goals with tailored metrics', | ||
'google-site-kit' | ||
), | ||
subtitle: MetricsWidgetSubtitle, |
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.
I included subtitle as component, to allow for conditional rendering, since in new design, subtitle is show only after KMW is setup
{ subtitle } | ||
{ typeof subtitle === 'function' ? ( | ||
<widgetArea.subtitle /> | ||
) : ( |
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.
To adapt to the new design of conditionally displaying the subtitle, had to make small modification to widget logic, to make subtitle more flexible - allowing it to render component when passed
assets/js/googlesitekit/widgets/components/WidgetAreaRenderer.js
Outdated
Show resolved
Hide resolved
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 text should be aligned to center on the new version.
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.
Thanks, it does looks better on this variations, missed it initially.
assets/js/googlesitekit/widgets/components/WidgetAreaRenderer.js
Outdated
Show resolved
Hide resolved
Thanks @eugene-manuilov PR updated |
assets/js/googlesitekit/widgets/components/WidgetAreaRenderer.js
Outdated
Show resolved
Hide resolved
assets/js/googlesitekit/widgets/components/WidgetAreaRenderer.js
Outdated
Show resolved
Hide resolved
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.
Forgot to approve it before merging.
Summary
Addresses issue:
Relevant technical choices
PR Author Checklist
Do not alter or remove anything below. The following sections will be managed by moderators only.
Code Reviewer Checklist
Merge Reviewer Checklist