-
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
Not all styles panels are visually updated on copy/paste block styles #47368
Comments
cc @kevin940726 |
Confirmed this is happening. Not ideal, but not immediate imo. |
Possible fix here #47590 |
I missed that, nice! Looks good to me. |
Re-opening this as the first fix turned out to be too fragile on trunk |
Doing this at the ToolsPanel level seems more robust, but will look further at it tomorrow to see if there is a way to get the ToolsPanelItem to do this by default rather than having to set the |
I've created an alternative PR ( #47727 ) that might help address this issue. One thing to note with that PR is that if an optional control such as the Heading block's padding or margin controls has been toggled on for display or previously customized, it will still be displayed after block styles are pasted. It will reflect the current value though, so this might potentially help reflect to the user what has changed. Interested in others' thoughts on that, though. |
Description
Not all pasted styles are "visually" applied in the inspector panel when copying and pasting block styles. The styles are technically applied to the block, but tools that were not already applied to a styles panel, do not get updated. If you deselect the block and then reselect, all styles panels are correctly updated.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Environment info
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: