Opened 6 years ago
Closed 6 years ago
#45239 closed defect (bug) (fixed)
Twenty Eleven: Issues in theme’s Gutenberg support & styles
Reported by: | laurelfulford | Owned by: | laurelfulford |
---|---|---|---|
Milestone: | 5.0 | Priority: | normal |
Severity: | normal | Version: | 5.0 |
Component: | Bundled Theme | Keywords: | has-patch, has-screenshots, commit, dev-reviewed, fixed-5.0 |
Focuses: | Cc: |
Description
I’ve re-reviewed the Gutenberg support that added in #45039, primarily to find anything that might have been missed, but also make sure none of the other changes happening during 5.0 development so far created a need for theme updates, too.
I opted to combine my findings per theme into one ticket, since many of the issues showed up in more than one of the default themes — it seemed easier for patching and reviewing, given the timeframe.
In Twenty Eleven, I found these issues:
- Centred widget lists (Categories, Archives…) need to have the text centred, like the editor.
- The cover blocks need to have their styles updated to add the newer non
-image-
variations of the cover block classes (.wp-block-cover
and.wp-block-cover-text
) - The Media & Text block does not have spacing underneath it.
- Editor width selectors can be simplified to just use
wp-block
in Gutenberg 4.2 RC - The
margin
styles being pulled in from the theme’s original editor styles are causing the content in Gutenberg to sit on the the left. This is new in Gutenberg’s 4.2 RC 1 as well.
Attachments (11)
Change History (20)
#1
@
6 years ago
45239.patch addresses all of the issues listed above, though I only included screenshots where it seemed relevant.
#2
@
6 years ago
- Keywords commit added; needs-testing removed
@laurelfulford This one looks good as well. Marking it to commit.
#3
@
6 years ago
- Keywords dev-reviewed added
It looks kind of weird to have the text centred, but the dot points aren't. I'm not sure if centring the points helps, though.
If y'all are happy with the current behaviour, 45239.patch is good to commit.
#4
@
6 years ago
Thanks @pento & @davidakennedy!
45239.1.patch makes sure the bullets are centred with the content in centred widget blocks. It was originally acting inconsistently across browsers -- I personally think the centred bullets look more "right" ("righter"?), so this change should make that consistent across the board.
It also fixes an issue @davidakennedy noted in other tickets, removing the margin from the bottom of the last child of a Media & Text block, which was otherwise adding too much space under the block.