From c7df4290e2845dddd6eee2f8546fe23dfbffe3ae Mon Sep 17 00:00:00 2001 From: neverland Date: Wed, 26 Apr 2023 20:18:23 +0800 Subject: [PATCH] fix(Pagination): don't show click feedback when button is disabled (#11779) --- packages/vant/src/pagination/index.less | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/vant/src/pagination/index.less b/packages/vant/src/pagination/index.less index d08d74ff4..491c1257d 100644 --- a/packages/vant/src/pagination/index.less +++ b/packages/vant/src/pagination/index.less @@ -75,9 +75,12 @@ } &--disabled { - color: var(--van-pagination-item-disabled-color); - background-color: var(--van-pagination-item-disabled-background); - opacity: var(--van-pagination-disabled-opacity); + &, + &:active { + color: var(--van-pagination-item-disabled-color); + background-color: var(--van-pagination-item-disabled-background); + opacity: var(--van-pagination-disabled-opacity); + } } }