Skip to content

Conversation

@shayla-develops-webs
Copy link
Member

remove unused Card files
update CHANGELOG

Web Dev Path
238

Have you updated the CHANGELOG.md file? If not, please do it.

yes

What is this change?

migrated the containers>card components to scss modules

Were there any complications while making this change?

Yes. I need some assistance figuring why the title text on the blog card is smaller after the change.
The blog card variant title text is rendering smaller than intended, even though the SCSS override exists. The nested .card--blog .title styles don’t appear to be applying the expected font size.

here is before:
image

here is after migration:
image

How to replicate the issue?

temporarily edit the scss title size and see if it changes for you

If necessary, please describe how to test the new feature or fix.

n/a

When should this be merged?

after fix and review

remove unused Card files
update CHANGELOG
@netlify
Copy link

netlify bot commented Aug 22, 2025

Deploy Preview for webdevpathstage ready!

Name Link
🔨 Latest commit 94a02c5
🔍 Latest deploy log https://app.netlify.com/projects/webdevpathstage/deploys/68c628e2c0648e0008668123
😎 Deploy Preview https://deploy-preview-280--webdevpathstage.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Member

@Satoshi-Sh Satoshi-Sh left a comment

Choose a reason for hiding this comment

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

Screenshot from 2025-08-23 07-31-38

If you see the same styling property on the browser, I believe you don't need to worry about the differences of the look.

Copy link
Member

@oluwatobiss oluwatobiss left a comment

Choose a reason for hiding this comment

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

Thanks, @shayla-develops-webs, for your work on this PR!

Concerning the complication you noted, the title text appears smaller after the change because .title’s font family should be $font-family-secondary rather than var(--font-heading).

Please consider the additional suggestions I’ve made.

Copy link
Member

@mtkksk1780 mtkksk1780 left a comment

Choose a reason for hiding this comment

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

@shayla-develops-webs
Thank you for the refactoring! Regarding your concern below, the cause is a difference in font types. As shown in the images, production uses "Open Sans," while this PR uses "Assistant." This issue can be fixed by using $font-family-secondary as @oluwatobiss suggested here.

Were there any complications while making this change?

Yes. I need some assistance figuring why the title text on the blog card is smaller after the change.
The blog card variant title text is rendering smaller than intended, even though the SCSS override exists. The nested .card--blog .title styles don’t appear to be applying the expected font size.

[styles/_variables.scss]
Screenshot 2025-08-27 at 1 19 29

[Production] "Open Sans" is used
Screenshot 2025-08-26 at 23 14 08

[PR#280] "Assistant" is used
Screenshot 2025-08-26 at 23 13 54

@shayla-develops-webs
Copy link
Member Author

Thank you @oluwatobiss and @mtkksk1780 for the suggestions!

Copy link
Member

@Satoshi-Sh Satoshi-Sh 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 to me. Thanks for the update 👍

Copy link
Member

@cherylli cherylli left a comment

Choose a reason for hiding this comment

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

thanks!

Copy link
Member

@oluwatobiss oluwatobiss left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @shayla-develops-webs!

@shayla-develops-webs shayla-develops-webs merged commit c0b06aa into main Sep 15, 2025
4 checks passed
@shayla-develops-webs shayla-develops-webs deleted the Refactor/to-scss-CardContainer branch September 15, 2025 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants