From b69cabb76e3905a5daf86c602af77c885a677437 Mon Sep 17 00:00:00 2001 From: Aki Hamano <54422211+t-hamano@users.noreply.github.com> Date: Sun, 20 Oct 2024 12:37:06 +0900 Subject: [PATCH] Quality: remove custom fallback css for 40px size (#224) --- src/editor.scss | 7 ------- src/elements/table-placeholder.tsx | 4 ++-- src/settings/table-caption-settings.tsx | 2 +- src/settings/table-cell-settings.tsx | 8 ++++---- 4 files changed, 7 insertions(+), 14 deletions(-) diff --git a/src/editor.scss b/src/editor.scss index a2c93a9..beaef0c 100644 --- a/src/editor.scss +++ b/src/editor.scss @@ -402,13 +402,6 @@ cursor: initial; } -// TODO: Remove this style and replace it with `__next40pxDefaultSize` prop -// when supported WordPress versions are greater than or equal to 6.5. -// See: https://github.com/WordPress/gutenberg/pull/55471 -.ftb-is-next-40px-default-size .components-text-control__input { - height: 40px; -} - // Setting Component Styles .ftb-button-group { display: block; diff --git a/src/elements/table-placeholder.tsx b/src/elements/table-placeholder.tsx index 0eddc5e..a220526 100644 --- a/src/elements/table-placeholder.tsx +++ b/src/elements/table-placeholder.tsx @@ -166,7 +166,6 @@ export default function TablePlaceholder( { setAttributes }: Props ) {
diff --git a/src/settings/table-cell-settings.tsx b/src/settings/table-cell-settings.tsx index 0a5b959..87e45b6 100644 --- a/src/settings/table-cell-settings.tsx +++ b/src/settings/table-cell-settings.tsx @@ -244,7 +244,6 @@ export default function TableCellSettings( { setAttributes, vTable, selectedCell __nextHasNoMarginBottom > @@ -395,20 +395,19 @@ export default function TableCellSettings( { setAttributes, vTable, selectedCell ) ) } { selectedCellTags.length === 1 && ( <>
{ selectedCellTags.includes( 'th' ) && ( id attribute', 'flexible-table-block' ), { code: } @@ -417,10 +416,10 @@ export default function TableCellSettings( { setAttributes, vTable, selectedCell value={ targetCell.id || '' } onChange={ onChangeId } __nextHasNoMarginBottom + __next40pxDefaultSize /> ) } headers attribute', 'flexible-table-block' ), { code: } @@ -429,6 +428,7 @@ export default function TableCellSettings( { setAttributes, vTable, selectedCell value={ targetCell.headers || '' } onChange={ onChangeHeaders } __nextHasNoMarginBottom + __next40pxDefaultSize /> { selectedCellTags.includes( 'th' ) && (