From 7e1ad5dbd59ee921fa5a3aee3fbc0685004eec6c Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Sun, 1 Nov 2020 20:50:32 +0800 Subject: [PATCH] style: no longer need icon min-width --- src/button/index.less | 1 - src/cell/index.less | 1 - src/field/index.less | 1 - src/nav-bar/index.less | 1 - src/tabbar-item/index.less | 3 +-- src/tag/index.less | 1 - 6 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/button/index.less b/src/button/index.less index 10cd8e797..b695651ad 100644 --- a/src/button/index.less +++ b/src/button/index.less @@ -154,7 +154,6 @@ } &__icon { - min-width: 1em; font-size: 1.2em; line-height: inherit; } diff --git a/src/cell/index.less b/src/cell/index.less index b5cfdc768..e8776d4ab 100644 --- a/src/cell/index.less +++ b/src/cell/index.less @@ -50,7 +50,6 @@ &__left-icon, &__right-icon { - min-width: 1em; height: @cell-line-height; font-size: @cell-icon-size; line-height: @cell-line-height; diff --git a/src/field/index.less b/src/field/index.less index 8936bf04d..62e01c397 100644 --- a/src/field/index.less +++ b/src/field/index.less @@ -116,7 +116,6 @@ &__left-icon .van-icon, &__right-icon .van-icon { display: block; - min-width: 1em; font-size: @field-icon-size; line-height: inherit; } diff --git a/src/nav-bar/index.less b/src/nav-bar/index.less index 582a0a82a..4bd86e708 100644 --- a/src/nav-bar/index.less +++ b/src/nav-bar/index.less @@ -16,7 +16,6 @@ } &__arrow { - min-width: 1em; margin-right: @padding-base; font-size: @nav-bar-arrow-size; } diff --git a/src/tabbar-item/index.less b/src/tabbar-item/index.less index 3a3cbc6b9..b7b8110f6 100644 --- a/src/tabbar-item/index.less +++ b/src/tabbar-item/index.less @@ -18,7 +18,6 @@ .van-icon { display: block; - min-width: 1em; } img { @@ -28,8 +27,8 @@ } &--active { - background-color: @tabbar-item-active-background-color; color: @tabbar-item-active-color; + background-color: @tabbar-item-active-background-color; } .van-info { diff --git a/src/tag/index.less b/src/tag/index.less index 9f5d3b49c..e197edfac 100644 --- a/src/tag/index.less +++ b/src/tag/index.less @@ -91,7 +91,6 @@ } &__close { - min-width: 1em; margin-left: 2px; cursor: pointer; }