Opened 5 months ago
Closed 4 months ago
#61611 closed defect (bug) (fixed)
Twenty Twenty-One: float-clearing pseudo-elements are visible in Row and Grid blocks
Reported by: | up1512001 | Owned by: | karmatosed |
---|---|---|---|
Milestone: | 6.7 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Bundled Theme | Keywords: | has-patch needs-testing commit |
Focuses: | css | Cc: |
Description
- The grid layout looks different on the front-end and back-end.
Attachments (1)
Change History (22)
This ticket was mentioned in PR #7001 on WordPress/wordpress-develop by @up1512001.
5 months ago
#1
- Keywords has-patch added
Trac ticket: https://core.trac.wordpress.org/ticket/61611
This is an issue with the TT1
theme I checked it's due to this code present in the style.css
file at the 2154 line number.
.wp-block-group:before, .wp-block-group:after { content: ""; display: block; clear: both; }
#2
@
5 months ago
- Component changed from Themes to Bundled Theme
- Focuses ui removed
- Keywords changes-requested added
- Milestone changed from Awaiting Review to Future Release
- Summary changed from Issue with TT1 theme with grid block to Twenty Twenty-One: float-clearing pseudo-elements are visible in Row and Grid blocks
- Version trunk deleted
The patch will need to edit twentytwentyone/assets/sass/05-blocks/group/_style.scss
and build files from that.
- The pseudo-elements are part of an IE hack.
- The hack could be moved to
07-utilities/ie.scss
instead of just deleting it. - The front-end styles could keep
display: flow-root
ingroup/_style.scss
for older versions of WordPress that do not set the flex or grid display. - [55329] removed the entire section of float-clearing styles (including
flow-root
) from the editor but left the front end as it was.
#4
@
5 months ago
Can you refresh the PR with the latest changes from trunk?
Also could the whole IE hack be moved? I don't think there are any reasons anymore to keep parts of it in the group block style?
I mean from
// Start IE clearfix
to
// End IE clearfix.
Until then, I have tested the change in the PR on top of 6.7 Alpha, where the inner div in the group block grid variation is removed.
Removing the .wp-block-group:after
solves the problem (removing the :before does not seem to have any impact).
I do not see any side effects on other groups, but I did not test on any older WordPress versions.
@karmatosed commented on PR #7001:
5 months ago
#8
@up1512001 this appears to have some merge conflicts. I am going to re-run tests but if this continues I will need you to check the PR here.
@up1512001 commented on PR #7001:
5 months ago
#9
@up1512001 this appears to have some merge conflicts. I am going to re-run tests but if this continues I will need you to check the PR here.
@karmatosed resolved merge conflicts.
#10
@
5 months ago
Thank you @up1512001 I will now look at testing what we have and check that what @poena asked for has happened by moving things to ie.css.
#12
@
5 months ago
Unless I am mistaken the latest patch doesn't do this recommendation by @sabernhardt and I am concerned of the implications there:
The front-end styles could keep display: flow-root in group/_style.scss for older versions of WordPress that do not set the flex or grid display.
#15
@
5 months ago
@up1512001, further up https://core.trac.wordpress.org/ticket/61611#comment:2 @sabernhardt recommends some other changes to consider that haven't been considered and those are what I am referring to. Are you able to review those also? I am aware there was a lot of feedback to process perhaps and it might have been lost but I want to ensure it doesn't get missed.
This ticket was mentioned in Slack in #core-themes by karmatosed. View the logs.
5 months ago
#18
@
4 months ago
- Owner set to karmatosed
I think the patch has been updated so checking this out now.
remove before and after from wp-block-group.