-
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
Set default alignments in theme.json #44007
Labels
[Feature] Theme Style Variations
Related to style variations provided by block themes
[Type] Enhancement
A suggestion for improvement.
Comments
Duplicate of #30761 ? |
I meant left/right/center alignments. |
skorasaurus
added
the
[Feature] Theme Style Variations
Related to style variations provided by block themes
label
Dec 5, 2022
This comment has been minimized.
This comment has been minimized.
This was referenced Apr 23, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
[Feature] Theme Style Variations
Related to style variations provided by block themes
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
In block themes, when alignments are set in the block markup itself, there is no way to change this alignment using style variations.
Example:
Because
"textAlign":"center"
andhas-text-align-center
is in the markup, it can not be changed by adding a style variation.If the
textAlign: "center"
was in theme.json, then blue.json could set it totextAlign: "none"
or similar.What is your proposed solution?
Allow setting default alignments for blocks using theme.json. Then alignments that are consistent with the default, can be removed from the HTML files in block themes.
The text was updated successfully, but these errors were encountered: