-
Notifications
You must be signed in to change notification settings - Fork 11
Refactor scss CardContainer #280
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
Conversation
remove unused Card files update CHANGELOG
✅ Deploy Preview for webdevpathstage ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Satoshi-Sh
left a comment
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.
oluwatobiss
left a comment
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, @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.
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.
@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.
… added title attribute to h2 element
|
Thank you @oluwatobiss and @mtkksk1780 for the suggestions! |
Satoshi-Sh
left a comment
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.
Looks good to me. Thanks for the update 👍
…nto Refactor/to-scss-CardContainer
…nto Refactor/to-scss-CardContainer
cherylli
left a comment
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!
oluwatobiss
left a comment
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.
LGTM. Thanks @shayla-develops-webs!




remove unused Card files
update CHANGELOG
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:

here is after migration:

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