From 419a418d3946e8480c355319104c45fcb8552ebb Mon Sep 17 00:00:00 2001
From: Lena Morita
Date: Mon, 30 Sep 2024 18:44:16 +0900
Subject: [PATCH] Button: Add `__next40pxDefaultSize` in dataviews,
reusable-blocks, etc. (#65715)
* Fix in Dataforms layouts
* Fix in Patterns header
* Fix in Patterns import popover
* Fix in nux
* Fix in ReusableBlockConvertButton
* Update snapshot
Co-authored-by: mirka <0mirka00@git.wordpress.org>
Co-authored-by: tyxla
---
.../dataviews/src/dataforms-layouts/panel/index.tsx | 4 +---
.../src/dataforms-layouts/panel/style.scss | 13 -------------
.../src/components/import-dropdown/index.js | 4 ++--
.../src/components/import-dropdown/style.scss | 5 +++++
.../src/components/import-form/index.js | 3 +--
.../src/components/import-form/style.scss | 1 -
packages/list-reusable-blocks/src/style.scss | 4 ----
packages/nux/src/components/dot-tip/index.js | 6 ++----
.../dot-tip/test/__snapshots__/index.js.snap | 4 ++--
.../reusable-block-convert-button.js | 6 ++----
10 files changed, 15 insertions(+), 35 deletions(-)
diff --git a/packages/dataviews/src/dataforms-layouts/panel/index.tsx b/packages/dataviews/src/dataforms-layouts/panel/index.tsx
index 9f118584998bd3..94e107dc20665a 100644
--- a/packages/dataviews/src/dataforms-layouts/panel/index.tsx
+++ b/packages/dataviews/src/dataforms-layouts/panel/index.tsx
@@ -44,12 +44,10 @@ function DropdownHeader( {
{ onClose && (
) }
diff --git a/packages/dataviews/src/dataforms-layouts/panel/style.scss b/packages/dataviews/src/dataforms-layouts/panel/style.scss
index e6840bed9d6e0b..ae69c4ff45243a 100644
--- a/packages/dataviews/src/dataforms-layouts/panel/style.scss
+++ b/packages/dataviews/src/dataforms-layouts/panel/style.scss
@@ -44,16 +44,3 @@
.dataforms-layouts-panel__dropdown-header {
margin-bottom: $grid-unit-20;
}
-
-[class].dataforms-layouts-panel__dropdown-header-action {
- height: $icon-size;
-
- &.has-icon {
- min-width: $icon-size;
- padding: 0;
- }
-
- &:not(.has-icon) {
- text-decoration: underline;
- }
-}
diff --git a/packages/list-reusable-blocks/src/components/import-dropdown/index.js b/packages/list-reusable-blocks/src/components/import-dropdown/index.js
index d20ba9fcf10999..fdad08f80d213c 100644
--- a/packages/list-reusable-blocks/src/components/import-dropdown/index.js
+++ b/packages/list-reusable-blocks/src/components/import-dropdown/index.js
@@ -17,8 +17,8 @@ function ImportDropdown( { onUpload } ) {
contentClassName="list-reusable-blocks-import-dropdown__content"
renderToggle={ ( { isOpen, onToggle } ) => (
@@ -66,8 +65,7 @@ export function DotTip( {
Got it
@@ -27,7 +27,7 @@ exports[`DotTip should render correctly 1`] = `
{
setIsModalOpen( false );
@@ -203,8 +202,7 @@ export default function ReusableBlockConvertButton( {