Make WordPress Core

Opened 5 weeks ago

Closed 5 weeks ago

#61805 closed defect (bug) (duplicate)

Body padding zeroed out from global styles

Reported by: blkedy's profile blkedy Owned by:
Milestone: Priority: normal
Severity: normal Version: 6.6.1
Component: Editor Keywords:
Focuses: css Cc:

Description (last modified by sabernhardt)

Dequeueing global-styles removes this block of code. This probably should not be enabled by default. Seems similar to #61660

:root :where(body) {
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
}

Change History (4)

#1 @desrosj
5 weeks ago

  • Keywords reporter-feedback added

Hi @blkedy,

Welcome to Trac!

Could provide a bit more detail? How and why are you dequeuing global styles? Which part of global styles? A detailed list of steps that someone else could follow to reproduce the problem on a new fresh install would be great.

#2 @blkedy
5 weeks ago

Zeroing out body padding is breaking several client sites when fixed navigations are used. We often use top body padding to push down the page leaving room for the first section to not underlap a fixed header. Dequeueing global-styles fixes the issue by removing the code block mentioned above. This rule was introduced in 6.6.1.

#3 @sabernhardt
5 weeks ago

  • Description modified (diff)

I think this is a duplicate of #61704.

#4 @desrosj
5 weeks ago

  • Component changed from General to Editor
  • Keywords reporter-feedback removed
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Thanks @sabernhardt. @blkedy could you please test the solution over on #61704? If it ends up that your problem is not the same, feel free to reopen this with more details.

Note: See TracTickets for help on using tickets.