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

feature(case-study-carousel): Case study carousel block. #323

Merged
merged 7 commits into from
Sep 6, 2023

Conversation

nimithshetty17
Copy link

Issue

Fixes #MERATIVE-785

Description

There's already a block in Franklin called "Carousel". This will be a variation called "Carousel - Case Study".

New

image

Design Specs

Test URLs

Testing Instruction

To test the case study carousel and its responsiveness with respect to the design across all devices.

@aem-code-sync
Copy link

aem-code-sync bot commented Aug 24, 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 Aug 24, 2023

Page Scores Audits Google
/block-library/blocks/carousel PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@nimithshetty17 nimithshetty17 added the Needs design QA PRs on feature requests and new components have to get design approval before merge. label Aug 24, 2023
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.

1. In desktop, eyebrow font style should be 14px Alliance No.1 medium and not 16px.
image

2. Title Text box should be 268px wide
image

3. Body text box should be 446px wide.

image

5. Spacing between side arrows with above and below componenets should be 48px.

image

6. Carousal indicators spacing with carousal card should be 64px.

image

@nimithshetty17 @proeung @Shalini-SB @sharathmrft

@aem-code-sync
Copy link

aem-code-sync bot commented Aug 28, 2023

Page Scores Audits Google
/block-library/blocks/carousel PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@nimithshetty17
Copy link
Author

@sachinmesh - The requested changes have been committed. Please have a look.
cc: @proeung @Shalini-SB @keith-kaplan

@sachinmesh
Copy link

Checking the link here.
https://case-study-carousel--merative2--nimithshetty17.hlx.page/block-library/blocks/carousel

HI @nimithshetty17
Can't see the changes in the above link, can you share the correct link.

Changes pending are

  1. In desktop, eyebrow font style should be 14px Alliance No.1 medium and not 16px.
image
  1. Title Text box should be 268px wide
image
  1. Body text box should be 446px wide.
image
  1. Spacing between side arrows with above and below component's should be 48px.
image
  1. Carousal indicators spacing with carousal card should be 64px.
image

@nimithshetty17
Copy link
Author

@sachinmesh I have cleared the cache. Please check in an incognito window now.

@sachinmesh
Copy link

CHecked @nimithshetty17

Rest is good, but the carousal arrows are gone, can you check once.

image image

@aem-code-sync
Copy link

aem-code-sync bot commented Aug 28, 2023

Page Scores Audits Google
/block-library/blocks/carousel PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@nimithshetty17
Copy link
Author

@sachinmesh have added the arrows back.

@sachinmesh
Copy link

Good to go @nimithshetty17 @proeung @sharathmrft

@aem-code-sync
Copy link

aem-code-sync bot commented Aug 29, 2023

Page Scores Audits Google
/block-library/blocks/carousel PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@sachinmesh sachinmesh removed the Needs design QA PRs on feature requests and new components have to get design approval before merge. label Aug 30, 2023
@aem-code-sync
Copy link

aem-code-sync bot commented Aug 30, 2023

Page Scores Audits Google
/block-library/blocks/carousel 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.

Looks good. I just have some code suggestions as well as feedback about design specs/values inconsistency, which we'll need to fix in Figma.

blocks/carousel/carousel.css Outdated Show resolved Hide resolved
blocks/carousel/carousel.css Outdated Show resolved Hide resolved
blocks/carousel/carousel.css Outdated Show resolved Hide resolved
blocks/carousel/carousel.css Outdated Show resolved Hide resolved
blocks/carousel/carousel.css Outdated Show resolved Hide resolved
blocks/carousel/carousel.css Outdated Show resolved Hide resolved
blocks/carousel/carousel.css Outdated Show resolved Hide resolved
blocks/carousel/carousel.css Outdated Show resolved Hide resolved
blocks/carousel/carousel.css Outdated Show resolved Hide resolved
@aem-code-sync
Copy link

aem-code-sync bot commented Aug 31, 2023

Page Scores Audits Google
/block-library/blocks/carousel PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@nimithshetty17
Copy link
Author

@proeung @sachinmesh have done the requested changes. Please have a look.

@sachinmesh
Copy link

Good to go now with 100 x 100 carousal arrow.

@nimithshetty17 @proeung

@sachinmesh sachinmesh added Ready to merge Label for the pull requests that are ready to merge and removed 🛠️ fix needed labels Aug 31, 2023
@proeung proeung removed the Ready to merge Label for the pull requests that are ready to merge label Aug 31, 2023
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.

@nimithshetty17 Thanks for addressing my code suggestions and feedback.

Overall the Carousel - Case Study block variation looks great, however, I'm hesitant to merge these change down since, the Testimonial carousel no longer rendering correctly (see attached).

@helms-charity Since you worked on the Testimonial carousel, can you help take a look at why it's rendering. Perhaps, there's something that's missing within the Sharepoint doc.

https://case-study-carousel--merative2--nimithshetty17.hlx.page/block-library/blocks/carousel

@helms-charity
Copy link
Collaborator

@nimithshetty17 @proeung ".carousel-slide-container" is not getting the calculated height, so it is presenting at 0 height. (when you put some number in the browser console, the content shows). I'll see if I can find what happened.

image

font-family: var(--serif-font);
font-weight: var(--font-weight-light);
line-height: 124%;
font-size: 31px;
Copy link
Collaborator

@helms-charity helms-charity Aug 31, 2023

Choose a reason for hiding this comment

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

The function "calculateSlideHeight" seems to need a font size as a number, not a variable in order to render the .carousel-slide-container. So you can put this back but specify the .carousel.testimonial type?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Also, I remember I tried using 32px as the font-size here, but there's something funky with your custome font, and I had to tell the JS to use 31px instead of 32px so that nothing would get cut off.

@aem-code-sync
Copy link

aem-code-sync bot commented Sep 1, 2023

Page Scores Audits Google
/block-library/blocks/carousel PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@nimithshetty17
Copy link
Author

@proeung - Testimonal carousel issue is fixed now.

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!

@proeung proeung added Ready to merge Label for the pull requests that are ready to merge and removed 🛠️ fix needed labels Sep 1, 2023
@proeung proeung merged commit 93d47f7 into hlxsites:main Sep 6, 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.

5 participants