-
Notifications
You must be signed in to change notification settings - Fork 65
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
Donate Block: improve donate block appearance for WP 5.8 #1398
Conversation
@@ -232,6 +232,27 @@ p.has-background { | |||
} | |||
} | |||
|
|||
//! Newspack Donate Block |
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.
More of a general remark, but I find it a bit weird that there are block styles in the theme. Why are these not in newspack-blocks
?
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.
That's a good question! I opted to put these styles in the theme instead of the plugin because they require the theme, if that makes sense. If it was a more general style that was always applied to the Donate block I agree it should go in the plugin. In this case, the block needs to be in certain areas of the theme (the sidebar, the mobile menu) for the styles to be applied, and with any other theme, these styles wouldn't be used. It's kind of similar to the custom colour/typography styles living in the theme instead of the plugin - even though those styles are applied to the block, it's only in the context of this theme, and wouldn't be useful otherwise.
Let me know if this doesn't make sense as an approach!
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.
Ah, that makes sense, thanks for the clarification!
Thanks Adam! I'm going to go ahead and merge this but I'm open to discussing the location of these styles further if my logic doesn't make sense :) |
## [1.39.3-alpha.1](v1.39.2...v1.39.3-alpha.1) (2021-07-06) ### Bug Fixes * ads media queries ([239ff6e](239ff6e)) * correct custom fonts in block widget preview ([#1401](#1401)) ([878b6a1](878b6a1)) * figcaption rendering bug in Safari ([#1382](#1382)) ([e274499](e274499)) * improve donate block appearance for WP 5.8 ([#1398](#1398)) ([51fc4f7](51fc4f7)) * prevent white screen and errors on Widget Screen ([#1390](#1390)) ([5731581](5731581))
🎉 This PR is included in version 1.39.3-alpha.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
## [1.39.3](v1.39.2...v1.39.3) (2021-07-06) ### Bug Fixes * ads media queries ([239ff6e](239ff6e)) * correct custom fonts in block widget preview ([#1401](#1401)) ([878b6a1](878b6a1)) * figcaption rendering bug in Safari ([#1382](#1382)) ([e274499](e274499)) * improve donate block appearance for WP 5.8 ([#1398](#1398)) ([51fc4f7](51fc4f7)) * prevent white screen and errors on Widget Screen ([#1390](#1390)) ([5731581](5731581))
🎉 This PR is included in version 1.39.3 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
All Submissions:
Changes proposed in this Pull Request:
This PR cleans up some small issues in the Donate Block when placed in the widget block spaces in WordPress 5.8, specifically making sure it's still picking up the custom colours, and reducing the padding a bit when it's in narrower spaces.
See #1372
How to test the changes in this Pull Request:
Sidebar - spacing:
Slide-out Sidebar - spacing and colour:
Slide-out Sidebar widgets in the mobile area - spacing and colour:
Footer and Above Copyright - colour; weird 'thank you' spacing:
npm run build
.Sidebar:
Slide-out Sidebar:
Slide-out Sidebar widgets in the mobile area:
Footer and Above Copyright:
Other information: