-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Quote Block: styles are different between front end and editor #45547
Comments
Hi @mikachan & @NidhiDhandhukiya74 With Gutenberg active: Do you think this issue might already be solved but is an issue with TT3 theme.json? |
I can't test just at the moment but I have a feeling this is related to there not being a functions.php file in TT3, or maybe more specifically that there is no available logic to enqueue editor styles. i.e. TT3 is missing something like the following code:
I think this may have a similar underlying issue to what I was exploring here (there is a similar issue with the separator block being different on the front end and editor): #45351 |
Then the style should show on the front when Gutenberg is active, no? |
Hello @carolinan @mikachan, These issues are caused because our
This also fixes the bug with
Have created & added a patch in https://core.trac.wordpress.org/ticket/57506. Please let me know if I can create PR for the same. Please forgive me if I have made any mistakes as this is my first contribution. |
The block styles have been left out on purpose during development of this theme, they do not only add styles to the quote block. |
Ah yeah... in this case, it's the editor styles that are correct, not the front end. If we update the styles in theme.json to this:
Then every quote block will have a left border, which doesn't look the best for the centered and right-aligned versions. Perhaps we need a way to style the different alignments via theme.json. |
I think the block should have a border option that allows the user to remove or add it even if they center the block. |
This sounds like a good idea. And I don't think making the pull quote obsolete is a bad thing, as long as users can still achieve the same thing. |
@NidhiDhandhukiya74 @Pathan-Amaankhan Is that something you would like to work on? |
@carolinan Sure, Just had a few questions before starting.
cc: @mikachan |
By adding the support for border controls, the users themselves will decide where they want the border, and the default border can be kept to the left. Support for borders first need to be added to block.json. After that, we need to test that the border style options work in the editors and when added in theme.json. |
Description
The default styles of the quote block are different between the editor and the front end:
Text alignment examples:
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
No response
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: