From e9c4a09f35221681dcb5f0f21465a6a6b70abd05 Mon Sep 17 00:00:00 2001 From: Aki Hamano Date: Sun, 20 Oct 2024 13:07:26 +0900 Subject: [PATCH] Refactor font size and line height UI with wordpress components --- src/editor.scss | 12 ------- src/settings/table-caption-settings.tsx | 47 ++++++++++++++----------- src/settings/table-cell-settings.tsx | 47 ++++++++++++++----------- 3 files changed, 52 insertions(+), 54 deletions(-) diff --git a/src/editor.scss b/src/editor.scss index 1a7b154..c0dae18 100644 --- a/src/editor.scss +++ b/src/editor.scss @@ -425,18 +425,6 @@ text-transform: uppercase; } -.ftb-base-control-row { - display: flex; - - .components-base-control__field { - margin-bottom: 0; - } - - > *:first-child { - margin-right: 16px; - } -} - .ftb-percent-group { margin-top: -8px; diff --git a/src/settings/table-caption-settings.tsx b/src/settings/table-caption-settings.tsx index 83ba35a..14afbe4 100644 --- a/src/settings/table-caption-settings.tsx +++ b/src/settings/table-caption-settings.tsx @@ -10,6 +10,7 @@ import { __ } from '@wordpress/i18n'; import { Button, Flex, + FlexBlock, TextControl, __experimentalSpacer as Spacer, __experimentalToggleGroupControl as ToggleGroupControl, @@ -104,27 +105,31 @@ export default function TableCaptionSettings( { { __( 'Clear caption settings', 'flexible-table-block' ) } -
- - -
+ + + + + + + + -
- - -
+ + + + + + + +