-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Delete editor-styles that are no longer needed #21383
Conversation
These were used to prevent wp-admin styles from leaking to the editor. Now that the paragraph & heading blocks add their own variables for these properties, we can remove these styles.
Size Change: -47 B (0%) Total Size: 885 kB
ℹ️ View Unchanged
|
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 makes sense to me, we can potentially apply them as fallbacks to the variables but I believe it's not really needed right?
I'm out for the day, but I trust Riad totally. I'd also say that regardless of whatever small things might be affected, this is a crucially important step to take, so go forth and conquer! |
I don't have a strong opinion either way. However, I lean towards not adding them: this was only previously done for the editor while adding now the fallbacks will affect both the editor & frontend. When we load the global styles they're going to be pre-filled anyway, so I guess we can land as it is. |
Extracted from #20530 (comment)
These styles were used to prevent wp-admin styles from leaking to the editor. Now that the paragraph & heading blocks add their own variables for these properties, we need to remove them so global styles are applied.
How to test
Test that it works:
Now, test that it doesn't work without these changes:
git reset --hard HEAD~1
) and compile again (npm run build
).