Block Alignment Settings Copied to Widget Area Cannot be Changed, Don't Reset to Default #61473
Labels
Blocks
Editor blocks, aka Gutenberg blocks, plugins, and extensions
Customer Report
Issues or PRs that were reported via Happiness. Previously known as "Happiness Request".
[Pri] Low
Address when resources are available.
Triaged
To be used when issues have been triaged.
[Type] Bug
Quick summary
This is a little esoteric and may soon be entirely irrelevant, however, it came up once and could again. So! Say you make a full-width block in a regular page in the block editor and then decide to copy and paste that block into the widget area.
When you paste it into the widget area, you won't be able to change the alignment settings of that block:
The columns block itself still has the alignfull property, and generally, even this won't come up too often because it will conform to the size of its parent element, but for some themes, Karuna for one, we might end up applying custom CSS for the alignfull property because the usual full alignment settings don't go all the way to the sides. Here's a snippet we often use
and in this case, the content of the block in the widget area gets very confused.
It's hard to see exactly what going on, but my guess is that the widget area's alignment is being added into these properties.
Anyway! It seems like it would make sense that if the property can't be changed in the widget menu, that property should be stripped out of code. There is still the option of adding the custom class from the advanced settings, if there is a situation where a workaround might be needed.
Steps to reproduce
5. Further behavior may depend on rules for property, but the settings applied here may function differently.
What you expected to happen
Either that the property wouldn't be there, or that applying rules to it would function as they do elsewhere.
What actually happened
The property remains, though it can't be changed in the editor, and at least for this workaround for full-width elements, doesn't act the same way.
Context
#4796865-zd
Simple, Atomic or both?
No response
Theme-specific issue?
No response
Browser, operating system and other notes
No response
Reproducibility
No response
Severity
No response
Available workarounds?
No response
Workaround details
No response
The text was updated successfully, but these errors were encountered: