-
Notifications
You must be signed in to change notification settings - Fork 64
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
Update editor classes to match what's currently in Gutenberg #686
Conversation
It looks like this is about replacing all instances of |
@@ -380,93 +380,93 @@ function newspack_custom_colors_css() { | |||
* - buttons | |||
*/ | |||
|
|||
.entry-meta .byline a { |
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.
This is the only change that doesn't appear to be a replacing editor-block-list__layout .editor-block-list__block
. Is it correct?
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.
There's that, and here: https://github.com/Automattic/newspack-theme/pull/686/files/a7eca439d09f988db35e07de3fceaeba36c4f66f#diff-38fb28a9c52ba7b44eaa303759a7aaadL363
Both added the .block-editor-block-list__layout .block-editor-block-list__block
classes where there weren't any before, for consistency; for the second change, there was also a missing ,
after the .cat-links
selector, causing some of the text-transform: uppercase
styles not to work (something I found when testing this). Apologies, I should've called that out more clearly!
Gah, good catch! Those should be replaced, too -- I was focused on the colours/typography because they were the parts I noticed that had stopped working, I should have checked the other stylesheets, too. Fresh commit to fix that is incoming! |
Apparently I can't read today 🤦♀ You're right, those styles won't be needed anymore as they are now: #685 is a theme PR that makes tweaks to the columns block, to go with changes being made to that markup. As part of it, I was able to simplify the editor styles, and remove the Just let me know if you think that's a bad idea, or if you have any questions about this! |
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 explaining all of that - looks good.
Thanks Jeff! 🙌 |
All Submissions:
Changes proposed in this Pull Request:
As of Gutenberg 7.2, the legacy classes
.editor-block-list__layout
and.editor-block-list__block
were removed from the editor.These are currently used in the editor for the custom colours and typography; this PR updates them to their replacement classes
.block-editor-block-list__layout
and.block-editor-block-list__block
How to test the changes in this Pull Request:
Other information: