From f91668105abdb06a59891872b3202f5d0152bb9e Mon Sep 17 00:00:00 2001 From: Isaev Alexandr Date: Tue, 23 Apr 2024 15:06:58 +0300 Subject: [PATCH] fix(Alert): fix close button width (#1542) --- src/components/Alert/Alert.scss | 4 ++++ src/components/Alert/Alert.tsx | 1 + src/components/Alert/__snapshots__/Alert.test.tsx.snap | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/Alert/Alert.scss b/src/components/Alert/Alert.scss index de329d75f3..34b4ede0ca 100644 --- a/src/components/Alert/Alert.scss +++ b/src/components/Alert/Alert.scss @@ -14,4 +14,8 @@ $block: '.#{variables.$ns}alert'; &__actions_minContent { width: min-content; } + + &__close-btn { + flex-shrink: 0; + } } diff --git a/src/components/Alert/Alert.tsx b/src/components/Alert/Alert.tsx index 902340d6ef..97e75f23ae 100644 --- a/src/components/Alert/Alert.tsx +++ b/src/components/Alert/Alert.tsx @@ -66,6 +66,7 @@ export const Alert = (props: AlertProps) => { {onClose && (