Skip to content

Commit

Permalink
Popover: add box-sizing reset style (#58871)
Browse files Browse the repository at this point in the history
* Popover: add `box-sizing:reset`

* Update changelog

* Fix typo in CHANGELOG

Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: andrewhayward <andrewhayward@git.wordpress.org>
Co-authored-by: richtabor <richtabor@git.wordpress.org>
Co-authored-by: MaggieCabrera <onemaggie@git.wordpress.org>
Co-authored-by: annezazu <annezazu@git.wordpress.org>
  • Loading branch information
6 people committed Feb 9, 2024
1 parent ad061c7 commit 6579820
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/components/CHANGELOG.md
Expand Up @@ -27,6 +27,7 @@
- `PaletteEdit`: Fix palette item accessibility in details view ([#58214](https://github.com/WordPress/gutenberg/pull/58214)).
- `Snackbar`: Fix the auto-dismissal timers ([#58604](https://github.com/WordPress/gutenberg/pull/58604)).
- `Tabs`: Fix infinite loop in `useEffect` ([#58861](https://github.com/WordPress/gutenberg/pull/58861)).
- `Popover`: Add `box-sizing` reset style ([#58871](https://github.com/WordPress/gutenberg/pull/58871)).

### Experimental

Expand Down
1 change: 1 addition & 0 deletions packages/components/src/popover/style.scss
Expand Up @@ -6,6 +6,7 @@ $shadow-popover-border-top-only: 0 #{-$border-width} 0 0 $gray-400;
$shadow-popover-border-top-only-alternate: 0 #{-$border-width} 0 $gray-900;

.components-popover {
@include reset;
z-index: z-index(".components-popover");
will-change: transform;

Expand Down
3 changes: 1 addition & 2 deletions packages/customize-widgets/src/style.scss
Expand Up @@ -13,7 +13,6 @@

// Include reset CSS for the customizer.
.customize-control-sidebar_block_editor,
.customize-widgets-layout__inspector,
.customize-widgets-popover {
.customize-widgets-layout__inspector {
@include reset;
}
1 change: 0 additions & 1 deletion packages/edit-post/src/style.scss
Expand Up @@ -47,7 +47,6 @@ body.js.block-editor-page {
.edit-post-text-editor,
.edit-post-sidebar,
.editor-post-publish-panel,
.components-popover,
.components-modal__frame {
@include reset;
}
Expand Down

0 comments on commit 6579820

Please sign in to comment.