Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 2 years ago

#61135 closed enhancement (fixed)

Global styles: output :root selector for CSS custom properties gutenberg and remove unused vars

Reported by: ramonopoly Owned by: isabel_brison
Priority: normal Milestone: 6.6
Component: Editor Version: 6.6
Severity: normal Keywords: has-patch has-unit-tests gutenberg-merge
Cc: Focuses:

Description (last modified by ramonopoly)

A ticket to track the synching of the following Gutenberg PRs:

​Global styles: output :root selector for CSS custom properties

Changingbody to :root as the preset block selector to make it consistent with other CSS custom property blocks

​Theme JSON: remove unused vars in layout class

$has_block_gap_support was only used once
$block_gap_value is immediately overwritten in the subsequent if block

Change History (7)

#2 @ramonopoly
3 years ago

  • Description modified (diff)
  • Keywords has-unit-tests gutenberg-merge added

#3 @isabel_brison
3 years ago

  • Owner set to isabel_brison
  • Resolution → fixed
  • Status new → closed

In 58123:

Editor: move global CSS custom properties to :root selector.

Changes the rules outputting global styles CSS custom properties to use :root instead of body, and cleans up some unused variables.

Props ramonopoly, isabel_brison.
Fixes #61135.

​@isabel_brison commented on ​PR #6489:


3 years ago
#4

Committed in r58123.

#5 @kebbet
2 years ago

Please milestone in 6.6! @isabel_brison

#6 @isabel_brison
2 years ago

  • Milestone Awaiting Review → 6.6

Ugh can't believe I missed that :facepalm: thanks @kebbet!

#7 @isabel_brison
2 years ago

  • Component General → Editor
Note: See TracTickets for help on using tickets.