From 1794513ae588e976d79fd9925b16e12d7bfbb7eb Mon Sep 17 00:00:00 2001 From: neverland Date: Wed, 25 Nov 2020 20:55:04 +0800 Subject: [PATCH] fix(Button): icon button vertical align (#7636) --- src/button/index.less | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/button/index.less b/src/button/index.less index b695651ad..d9ebd3bf4 100644 --- a/src/button/index.less +++ b/src/button/index.less @@ -151,6 +151,12 @@ align-items: center; justify-content: center; height: 100%; + + // fix icon vertical align + // see: https://github.com/youzan/vant/issues/7617 + &::before { + content: ' '; + } } &__icon {