Reset styles doesn't work when style set via pushing to global styles #46860
Labels
Global Styles
Anything related to the broader Global Styles efforts, including Styles Engine and theme.json
[Type] Bug
An existing feature does not function as intended
Description
When I use the new 'Push to Global Styles' button introduced in #46446, resetting styles afterwards behaves oddly - it doesn't seem to reset all properties.
What actually happens is that when 'Pushing' to Global Styles some local styles are moved to Global Styles, but some local styles are copied to Global Styles. This means that when resetting global styles, some local styles still remain.
It seems that link color gets moved, but background and text colours are copied. I've tested this on the post title, post excerpt and headings blocks.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Screen.Capture.on.2023-01-03.at.18-14-13.mp4
Environment info
Checked out the 4.19.0-rc1 and have built and ran via the provided wp-env on a clean site db.
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: