Make WordPress Core

Opened 3 years ago

Closed 3 weeks ago

#56512 closed defect (bug) (invalid)

Design glitch in calendar block control with align left and right(Frontend)

Reported by: bisnusnr's profile bisnusnr Owned by:
Milestone: Priority: normal
Severity: normal Version: 6.0.2
Component: Themes Keywords: needs-testing 2nd-opinion close
Focuses: css Cc:

Description

I've noticed that when I add the calendar block (without any other blocks) with the align left or right control in backend,
the calendar displays inline with the footer. But instead of a calendar, I added a latest post block with an align left control,
and it looks fine.

Would you please verify.
latest post block: https://tinyurl.com/2le537ry
calendar : https://tinyurl.com/2lyxklye

WordPress Version: 6.0.2
Active Theme: TwentyTwentyTwo

Change History (4)

#1 @haritpanchal
3 years ago

  • Type changed from enhancement to defect (bug)

#2 @haritpanchal
3 years ago

  • Keywords 2nd-opinion added

I don't think it is any glitch or bug. Aligning left or right to any block will be counted as sidebar in the page/post.

#3 @rohit900
3 years ago

This is a glitch. It is because of the invalid css rule.
If the parent div is not float but the child div is float, then we must clear the parent div.

.parent-class::after {
content:"";
clear:both;
display: block;
}

Please add this css. Replace the .parent-class with the requirent parent wrapper class.

It worked for me after adding this css.

#4 @karmatosed
3 weeks ago

  • Keywords close added; needs-design removed
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Thank you for reporting this, however based on what I am seeing this seems a very particular situation. I am not sure there is a bug to fix here. For now, I am going to mark this as invalid, but if we can work out how core is doing this wrong and unexpected we can of course reopen. Thank you everyone.

Note: See TracTickets for help on using tickets.