#40103 closed defect (bug) (fixed)
Twenty Seventeen: Blockquotes aligned right are not behaving as expected
Reported by: | laurelfulford | Owned by: | laurelfulford |
---|---|---|---|
Milestone: | 5.1 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Bundled Theme | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
When you align a blockquote to the right and have assigned sidebar widgets, Twenty Seventeen should be placing the blockquote fully in the right sidebar.
This currently isn’t working until you resize the browser window. There’s some JavaScript in the theme used to make sure the sidebar isn’t too long before moving over the blockquote - right not it looks like it's only firing on resize, but not on page load.
Here’s how a single post currently looks with an aligned right blockquote and a sidebar widget:
When the browser is resized, the blockquote is moved to its correct location:
Attachments (1)
Change History (14)
#7
@
6 years ago
I'm having some issues testing this. Before applying the patch, I can't get blockquotes to move to the sidebar at all (even when resizing my browser window). The patch in my testing does not fix the alignment in either situation (on load or when resizing).
#8
@
6 years ago
Thanks for testing this, @desrosj!
It looks like the issue is that this ticket only covers the behaviour of the blockquote
in the classic block or classic editor.
The quote block should ideally be styled/act the same though -- that's a good catch! I've created a new issue for that here: https://core.trac.wordpress.org/ticket/46049
Does the patch work when using the classic block?
#9
@
6 years ago
I tried creating a new post using the Classic Editor plugin and with the block editor using a classic block. Both produced the same results I detailed above.
#10
@
6 years ago
Thanks @desrosj!
In testing this again, I was flubbing the actual steps to recreate these styles -- it looks like they do work on the quote blocks, too.
For the classic editor/block, you have to add the blockquote
, then edit the HTML to add class="alignright"
.
For the quote block, rather than aligning the text right (which I was doing too!), you have to add the class alignright
to the "Additional CSS Class" field under the Advanced panel.
Let me know if this still doesn't work -- it's definitely not helping that I've confused the steps to recreate, too!
#11
@
6 years ago
- Keywords commit added; needs-testing removed
@laurelfulford Gotcha! Ok, I am able to reproduce this now.
Your fix works as expected!
I did notice a separate issue that I will open a new ticket for. When using the Customizer, if a new widget is introduced into the sidebar, it is not rechecked for "emptiness".
Add fix so also fires JavaScript event that determines if blockquote can be moved on page load.