-
Notifications
You must be signed in to change notification settings - Fork 43
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
Hotfix/update subtitle selector #1614
Conversation
@adekbadek I'd love to get your eyes on this before it's merged -- I ended up re-adding a CSS class removed in #1548 to fix an edge case display issue. An alternative would be to just make the CSS selector more specific (like I might be preserving something that's not great to keep in the long-run by doing this, though -- if the more specific selector would be better than what I've done here, I can come up with a plan for site-specific stuff. Just let me know if you have any questions, and I could be totally overthinking this 😅 Thanks! |
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 for catching that! I think it's fine to add this one selector.
Thanks @adekbadek! We had one more report of something else font-size related, so I've bundled it in the same PR and am marking it as needing review again, so they can both be in the same hotfix. I'm going to update the testing steps to cover both, then mark this as needing review again. |
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.
the font size fizes work as described
The paragraphs below the titles change their size according to the size chosen in the block, both on the editor and on the front end
Thanks @leogermani! 🙌 |
## [2.2.2](v2.2.1...v2.2.2) (2023-11-29) ### Bug Fixes * update title, subtitle CSS selectors in homepage posts block ([#1614](#1614)) ([0ccb973](0ccb973))
🎉 This PR is included in version 2.2.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
All Submissions:
Changes proposed in this Pull Request:
Edited to add: The testing steps have been updated to cover an additional fix I've added to this PR.
Subtitles:
This PR fixes a weird edge case where if you have:
... the styles from the homepage posts block subtitle override the styles coming from the theme, and remove the space from underneath the subtitle in the post header. The issue is that the CSS selector changed in the release.
Font sizes:
It also updates the selectors for the smaller homepage post block sizes. The sizes for type scale 3 and smaller don't include the .ts-# selector in front of all elements, so that font size is getting picked up by other homepage post blocks with larger font sizes that normally use the theme's defaults.
I've updated the selectors to make sure styles for type scale 3 and lower don't "bleed" into other blocks on the page. I also tweaked the title size for type scale 4's headers -- it's the "default" size so the styles weren't set up exactly the same as the others originally, and weren't inheriting the right font size on different screen sizes.
How to test the changes in this Pull Request:
Testing the subtitle fix:
Testing the smaller font size fix:
HPB - different sizes
npm run build
.Other information: