From cff0631b2b83ceac49fc7d28c87ba6e60a7b42a8 Mon Sep 17 00:00:00 2001 From: Mikasa33 Date: Wed, 17 May 2023 10:21:05 +0800 Subject: [PATCH] fix(Dialog): fix the rounded corners of shadow when button is clicked (#11863) --- packages/vant/src/dialog/index.less | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/packages/vant/src/dialog/index.less b/packages/vant/src/dialog/index.less index d2168ad9b..f54ef435a 100644 --- a/packages/vant/src/dialog/index.less +++ b/packages/vant/src/dialog/index.less @@ -100,6 +100,7 @@ height: var(--van-dialog-button-height); margin: 0; border: 0; + border-radius: 0; } &__confirm { @@ -129,6 +130,18 @@ .van-dialog__confirm { color: var(--van-white); } + + .van-action-bar-button { + &--first { + border-top-left-radius: var(--van-radius-max); + border-bottom-left-radius: var(--van-radius-max); + } + + &--last { + border-top-right-radius: var(--van-radius-max); + border-bottom-right-radius: var(--van-radius-max); + } + } } &-bounce-enter-from {