Skip to content
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

feat(content-band-checkmarks): Content band checkmarks block changes #300

Merged
merged 12 commits into from
Aug 11, 2023

Conversation

nimithshetty17
Copy link

Issue

Fixes #MERATIVE-780

Description

This ticket is part of the phase 3 effort, which is to migrate all of the remaining components/patterns in AEM over to Franklin. for Section > Section Content band checkmarks.
Note: part of this work is to clean up the naming in Franklin to ensure it aligns with our Design Systems.

New

image

Design Specs

https://www.figma.com/file/vw24IPXXt4vCh9BNumka9A/Web--Merative-Digital-Design-System-2.0?type=design&node-id=1459-12919&mode=design&t=7UVLWpIfJsh1PJaS-0

  • Figma Link -

Test URLs

https://section-content-band-checkmarks--merative2--nimithshetty17.hlx.page/block-library/sections/section-content-band-checkmarks

Testing Instruction

To test the content band checkmarks and its responsiveness with respect to the design across all devices.

@aem-code-sync
Copy link

aem-code-sync bot commented Jul 27, 2023

Hello, I'm Franklin Bot and I will run some test suites that validate the page speed.
In case there are problems, just click the checkbox below to rerun the respective action.

  • Re-run PSI Checks

@aem-code-sync
Copy link

aem-code-sync bot commented Jul 27, 2023

Page Scores Audits Google
/block-library/sections/section-content-band-checkmarks PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

Copy link

@sharathmrft sharathmrft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nimithshetty17
Responsiveness and Background color is fine on different devices but 'Video player' functionality needs to be configured and needs to be verified to play the video as per the design.
@proeung @sachinmesh

@sachinmesh
Copy link

In desktop, the width of the right side list rounded rectangles should be 360px. Rest is good to go.
image

@nimithshetty17 @sharathmrft @Shalini-SB @proeung

@proeung proeung added the Needs design QA PRs on feature requests and new components have to get design approval before merge. label Jul 31, 2023
@aem-code-sync
Copy link

aem-code-sync bot commented Jul 31, 2023

Page Scores Audits Google
/block-library/sections/section-content-band-checkmarks PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@proeung
Copy link

proeung commented Jul 31, 2023

Marking this PR as "needs fixing", since video button functionality still needs to be implemented.

@nimithshetty17
Copy link
Author

@proeung - Had a word with Saad and once his PR for video player is reviewed and merged, I will use the same functionality for the video modal in content band checkmarks as well.
@keith-kaplan @sahmad-merative @sharathmrft

@proeung
Copy link

proeung commented Aug 2, 2023

@nimithshetty17 Okay, sounds good. Let's keep this PR as on-hold until this PR (#307) has been approved and merged.

@proeung proeung added On-Hold Work is on-hold until proper sign off and removed 🛠️ fix needed labels Aug 2, 2023
@aem-code-sync
Copy link

aem-code-sync bot commented Aug 3, 2023

Page Scores Audits Google
/block-library/sections/section-content-band-checkmarks PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@nimithshetty17
Copy link
Author

@sachinmesh - The width fix is added and can be reviewed.

@sachinmesh
Copy link

Ya, checked @nimithshetty17 , now the width on the lists is fixed. Thank you.
Once the CTA is added its good to go.
CC: @proeung

@proeung proeung changed the title feat(content-band-list-block): Content band checkmarks block changes. feat(content-band-checkmarks): Content band checkmarks block changes Aug 3, 2023
@aem-code-sync
Copy link

aem-code-sync bot commented Aug 3, 2023

Page Scores Audits Google
/block-library/sections/section-content-band-checkmarks PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@proeung proeung removed the On-Hold Work is on-hold until proper sign off label Aug 9, 2023
@aem-code-sync
Copy link

aem-code-sync bot commented Aug 9, 2023

Page Scores Audits Google
/block-library/sections/section-content-band-checkmarks PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@proeung
Copy link

proeung commented Aug 9, 2023

@nimithshetty17 This PR can be moved forward since this one (#307) has been merged.

Copy link

@proeung proeung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good first pass! However, I added some code suggestions so that we can keep to using CSS variables whenever we can.

Also, let's add a content-band-checkmarks.js file and add a class to the <p> tag that we're using for the eyebrow (see - https://github.com/hlxsites/merative2/blob/main/blocks/content/content.js#L15-L25C8)

Your solution for targeting the .content-band-checkmarks > div > div:first-child > p:first-child works great if the first <p> is an eyebrow, but there might be a scenario where the first <p> in the DOM is the short description because the eyebrow content is not used. Let's try to adjust the return of the markup as best as possible.

@media (min-width: 1200px) {
.content-band-checkmarks > div {
display: flex;
gap: 120px;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
gap: 120px;
gap: var(--gap-120);

see - https://github.com/hlxsites/merative2/blob/main/styles/styles.css#L198C3-L198C12

grid-template-columns: repeat(2, 1fr);
grid-template-rows: repeat(3, 1fr);
grid-auto-flow: column;
column-gap: 24px;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
column-gap: 24px;
column-gap: var(--gap-24);

Let's move this into CSS variable (--gap-24: 24px;). https://github.com/hlxsites/merative2/blob/main/styles/styles.css#L196

}

.content-band-checkmarks > div > div:nth-child(2) > ul>li::before {
margin-right: 24px;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
margin-right: 24px;
margin-right: var(--spacer-element-07);

font-weight: var(--font-weight-medium);
line-height: var(--line-height-160);
letter-spacing: var(--letter-spacing-001-em);
margin: 0 0 16px;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
margin: 0 0 16px;
margin: 0 0 var(--spacer-element-05);

line-height: var(--line-height-160);
letter-spacing: var(--letter-spacing-001-em);
margin: 0 0 16px;
padding: 0 24px;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
padding: 0 24px;
padding: 0 var(--spacer-element-07);

padding: 0;
}

.content-band-checkmarks > div > div:nth-child(2) > ul>li {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.content-band-checkmarks > div > div:nth-child(2) > ul>li {
.content-band-checkmarks > div > div:nth-child(2) > ul > li {

margin: 0 0 var(--spacer-layout-04);
}

.content-band-checkmarks > div > div:first-child > .button-container>strong>a {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.content-band-checkmarks > div > div:first-child > .button-container>strong>a {
.content-band-checkmarks > div > div:first-child > .button-container > strong > a {

}

main > .section.section-header.list-section.bg-neutral-bone > .content-band-checkmarks-wrapper > .content-band-checkmarks > div > div:nth-child(2) > ul>li {
background-color: white;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
background-color: white;
background-color: var(--neutral-white);

align-items: center;
}

main > .section.section-header.list-section.bg-neutral-bone > .content-band-checkmarks-wrapper > .content-band-checkmarks > div > div:nth-child(2) > ul>li {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
main > .section.section-header.list-section.bg-neutral-bone > .content-band-checkmarks-wrapper > .content-band-checkmarks > div > div:nth-child(2) > ul>li {
main > .section.section-header.list-section.bg-neutral-bone > .content-band-checkmarks-wrapper > .content-band-checkmarks > div > div:nth-child(2) > ul > li {

}

.content-band-checkmarks > div > div:first-child > p:not(:first-child):not(.button-container) {
max-width: 517px;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's keep the max-width value to 516px so that we don't have just one pixel off.

.content-band-checkmarks > div > div:first-child > h2,
.content-band-checkmarks > div > div:first-child > p:not(:first-child):not(.button-container) {
   max-width: 516px;
}

@aem-code-sync
Copy link

aem-code-sync bot commented Aug 10, 2023

Page Scores Audits Google
/block-library/sections/section-content-band-checkmarks PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@aem-code-sync
Copy link

aem-code-sync bot commented Aug 10, 2023

Page Scores Audits Google
/block-library/sections/section-content-band-checkmarks PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@aem-code-sync
Copy link

aem-code-sync bot commented Aug 11, 2023

Page Scores Audits Google
/block-library/sections/section-content-band-checkmarks PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@aem-code-sync
Copy link

aem-code-sync bot commented Aug 11, 2023

Page Scores Audits Google
/block-library/sections/section-content-band-checkmarks PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@nimithshetty17
Copy link
Author

@sachinmesh @proeung @sharathmrft - The video player functionality has been implemented on section content band checkmarks.

Copy link

@sharathmrft sharathmrft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nimithshetty17 Video player functionality has been Tested across the browsers it is working as expected

@proeung

Copy link

@sachinmesh sachinmesh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked the CTA, its functioning right with modal opening over the layout.

@aem-code-sync
Copy link

aem-code-sync bot commented Aug 11, 2023

Page Scores Audits Google
/block-library/sections/section-content-band-checkmarks PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@aem-code-sync
Copy link

aem-code-sync bot commented Aug 11, 2023

Page Scores Audits Google
/block-library/sections/section-content-band-checkmarks PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

Copy link

@proeung proeung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@aem-code-sync
Copy link

aem-code-sync bot commented Aug 11, 2023

Page Scores Audits Google
/block-library/sections/section-content-band-checkmarks PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@proeung proeung added Ready to merge Label for the pull requests that are ready to merge and removed Needs design QA PRs on feature requests and new components have to get design approval before merge. 🛠️ fix needed labels Aug 11, 2023
@proeung proeung merged commit 6259710 into hlxsites:main Aug 11, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready to merge Label for the pull requests that are ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants