From 77b351f68fdd2f26a11c111ad5023b9522e64d6d Mon Sep 17 00:00:00 2001 From: Fatpandac Date: Tue, 16 Jan 2024 14:02:31 +0800 Subject: [PATCH] fix: ok button of the DatePicker becomes compacted when used with Space.Compact (#46769) * fix: ok button of the DatePicker becomes compacted when used with Space.Compact * fix: break CSS selector * fix: break the compact context on the panel * chore: update test --- components/date-picker/PickerButton.tsx | 2 +- .../generatePicker/generateRangePicker.tsx | 112 +++++++++--------- .../generatePicker/generateSinglePicker.tsx | 108 ++++++++--------- .../__snapshots__/demo-extend.test.ts.snap | 6 +- components/statistic/index.ts | 2 +- components/table/InternalTable.tsx | 2 +- 6 files changed, 120 insertions(+), 112 deletions(-) diff --git a/components/date-picker/PickerButton.tsx b/components/date-picker/PickerButton.tsx index bf8b0f462b92..43a9e1f00257 100644 --- a/components/date-picker/PickerButton.tsx +++ b/components/date-picker/PickerButton.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; -import type { ButtonProps } from '../button'; import Button from '../button'; +import type { ButtonProps } from '../button'; export default function PickerButton(props: ButtonProps) { return