From 5e4fff39d6e8d7c2d239d63c2fa5aa18bb0fd468 Mon Sep 17 00:00:00 2001 From: tanjinzhou <415800467@qq.com> Date: Mon, 16 Nov 2020 11:32:28 +0800 Subject: [PATCH] fix: alert close icon style error on safari #3184 --- .../alert/__tests__/__snapshots__/demo.test.js.snap | 10 +++++----- components/alert/index.tsx | 9 +++++++-- .../collapse/__tests__/__snapshots__/demo.test.js.snap | 8 ++++---- 3 files changed, 16 insertions(+), 11 deletions(-) diff --git a/components/alert/__tests__/__snapshots__/demo.test.js.snap b/components/alert/__tests__/__snapshots__/demo.test.js.snap index 62ac9a025..419a3e478 100644 --- a/components/alert/__tests__/__snapshots__/demo.test.js.snap +++ b/components/alert/__tests__/__snapshots__/demo.test.js.snap @@ -4,7 +4,7 @@ exports[`renders ./antdv-demo/docs/alert/demo/banner.md correctly 1`] = `
Warning text

-
Very long warning text warning text text text text text text text

+
Very long warning text warning text text text text text text text

Warning text without icon @@ -23,16 +23,16 @@ exports[`renders ./antdv-demo/docs/alert/demo/basic.md correctly 1`] = ` exports[`renders ./antdv-demo/docs/alert/demo/closable.md correctly 1`] = `
- Warning Text Warning Text Warning TextW arning Text Warning Text Warning TextWarning Text + Warning Text Warning Text Warning TextW arning Text Warning Text Warning TextWarning Text
- Error TextError Description Error Description Error Description Error Description Error Description Error Description + Error TextError Description Error Description Error Description Error Description Error Description Error Description
`; exports[`renders ./antdv-demo/docs/alert/demo/close-text.md correctly 1`] = `
- Info TextClose Now + Info Text
`; @@ -115,7 +115,7 @@ exports[`renders ./antdv-demo/docs/alert/demo/icon.md correctly 1`] = ` exports[`renders ./antdv-demo/docs/alert/demo/smooth-closed.md correctly 1`] = `
- Alert Message Text + Alert Message Text
`; diff --git a/components/alert/index.tsx b/components/alert/index.tsx index fd0f9965c..30e749997 100644 --- a/components/alert/index.tsx +++ b/components/alert/index.tsx @@ -129,9 +129,14 @@ const Alert = defineComponent({ }); const closeIcon = closable ? ( - + ) : null; const iconNode = (icon && diff --git a/components/collapse/__tests__/__snapshots__/demo.test.js.snap b/components/collapse/__tests__/__snapshots__/demo.test.js.snap index 1bf083b84..ffd164b9b 100644 --- a/components/collapse/__tests__/__snapshots__/demo.test.js.snap +++ b/components/collapse/__tests__/__snapshots__/demo.test.js.snap @@ -29,7 +29,7 @@ exports[`renders ./antdv-demo/docs/collapse/demo/basic.md correctly 1`] = `
This is panel header 1
-
+

A dog is a type of domesticated animal.Known for its loyalty and faithfulness,it can be found as a welcome guest in many households across the world.

@@ -56,7 +56,7 @@ exports[`renders ./antdv-demo/docs/collapse/demo/borderless.md correctly 1`] = `
This is panel header 1
-
+

A dog is a type of domesticated animal. Known for its loyalty and faithfulness, it can be found as a welcome guest in many households across the world.

@@ -83,7 +83,7 @@ exports[`renders ./antdv-demo/docs/collapse/demo/custom.md correctly 1`] = `
This is panel header 1
-
+

A dog is a type of domesticated animal.Known for its loyalty and faithfulness,it can be found as a welcome guest in many households across the world.

@@ -165,7 +165,7 @@ exports[`renders ./antdv-demo/docs/collapse/demo/noarrow.md correctly 1`] = `
This is panel header with arrow icon
-
+

A dog is a type of domesticated animal.Known for its loyalty and faithfulness,it can be found as a welcome guest in many households across the world.