-
Notifications
You must be signed in to change notification settings - Fork 4
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
Brand detail page styling #62
Conversation
Hello, I'm Franklin Bot and I will run some test suites that validate the page speed.
|
|
|
styles/styles.css
Outdated
@@ -432,6 +432,57 @@ main .section.full-width>.section-container { | |||
padding-right: 0; | |||
} | |||
|
|||
/* START section - brand detail page */ |
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'm wondering, if these sections, which you neatly marked with START/END only apply to the brands page, would it make sense to put them in a page-specific style? I know it was said that we'd like to maybe avoid page-specific styles but maybe it's better than putting styles that apply to only 1 page in the general styles.css?
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.
@bosschaert Yeah, it's pretty page-level styling. I had the same question, but as we discussed in the standup meeting, the page-level style won't be used in sunstar.com site.
@sdmcraft Shall we revive page-level styling?
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.
Can't we use general styles in place of page level styles. I think we agreed over one approach that if we encounter such kind of cases, we will ask Dejan regarding that case.
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 was just wondering how far does narrow
section style take us on this. Here's what I see. Looks somewhat similar to live but not quite there. I think the images should be centered and margin/paddings should be adjusted. But likely the narrow
section variant itself can benefit from these if we add these styles to it.
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 just tried to use narrow
but it doesn't look perfect to me. To reproduce the original site, if I add the styling to narrow
, I think it will impact other pages such as image styling. Any suggestion in this case? For now, I added it separately into style.css.
narrow version:
https://issue-30--sunstar--hlxsites.hlx.page/_drafts/jiang/brands/consumer-health-beauty-withnarrower
Non-narrow version:
https://issue-30--sunstar--hlxsites.hlx.page/_drafts/jiang/brands/consumer-health-beauty
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 see that you use the narrower
style right now, the differences I personally see are:
- The
kendojo
andequitance
logo images are not centred and a bit bigger, I think that you can add two variants to the image collage, something likezoomed-in
andcentred
to achieve the live website size and positioning - The rest of the images are smaller; I think you can add a section style called something like
narrow-pictures
that sets the img widths - The text is centred, not left-aligned; I think another section style called something like
left-aligned-text
would do the trick; either this or a variation of thetext
block that does the same - Headings are smaller; another section style called something like
bigger-headings
Just my two cents
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 @dnbute! It's an approach that I thought of before but I'd like to reduce the authoring effort by avoiding adding more variants to blocks, that's why I put all staff into one metadata.
It looks like a maze game, @sdmcraft @bosschaert @jindaliiita any thoughts?
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.
@sdmcraft @bosschaert @jindaliiita @dnbute Okay, I moved out the styling from styles.css and added them to blocks. Please help to review.
https://issue-30--sunstar--hlxsites.hlx.page/_drafts/jiang/brands/consumer-health-beauty
styles/styles.css
Outdated
flex: unset; | ||
} | ||
|
||
main .brand-detail-page p:has(img) { |
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 think Firefox doesn't support :has
out of the box
https://caniuse.com/?search=has
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.
Very good point 👍
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.
@dnbute thanks, this has been fixed
Hello, I'm the AEM Code Sync Bot and I will run some test suites that validate the page speed.
|
|
🔸 1 visual difference detected
The diff images are attached in the artifact |
|
🔸 1 visual difference detected
The diff images are attached in the artifact |
|
🔸 9 visual differences detected
The diff images are attached in the artifact |
|
🔸 9 visual differences detected
The diff images are attached in the artifact |
Please add a brand detail page here for it to be included in visual tests. |
|
|
🔸 1 visual difference detected
The diff images are attached in the artifact |
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.
Since you are adding new variations for the collage
block, please add examples for it in the block library. Also please review the detected visual differences before merging to validate that they are all expected.
Please always provide the GitHub issue(s) your PR is for, as well as test URLs where your change can be observed (before and after):
Fix #30
Test URLs:
Original: https://www.sunstar.com/brands/consumer-health-beauty/
Before: https://main--sunstar--hlxsites.hlx.live/_drafts/jiang/brands/consumer-health-beauty
After: https://issue-30--sunstar--hlxsites.hlx.live/brands/consumer-health-beauty
If you are adding a new block or a variation to an existing block, please fill below:
Block library path: https://--sunstar--hlxsites.hlx.page/tools/sidekick/library.html?plugin=blocks&path=/sidekick/blocks/&index=0