From ed8a294fe2989850a4f2a6d12d4e7a9c86cd225b Mon Sep 17 00:00:00 2001 From: neverland Date: Sat, 2 Feb 2019 10:01:38 +0800 Subject: [PATCH] [bugfix] AddressList: radio style (#2669) --- packages/address-list/index.less | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/packages/address-list/index.less b/packages/address-list/index.less index d9d3e3143..82c2938b6 100644 --- a/packages/address-list/index.less +++ b/packages/address-list/index.less @@ -36,16 +36,24 @@ box-sizing: border-box; } - .van-radio__input { + .van-radio__icon { top: 50%; left: 0; - font-size: 16px; + height: 16px; position: absolute; + line-height: 16px; transform: translate(0, -50%); + + .van-icon { + width: 16px; + height: 16px; + font-size: 12px; + } } - .van-icon-checked { - color: @red; + .van-radio__icon--checked .van-icon { + border-color: @red; + background-color: @red; } &__name { @@ -62,10 +70,6 @@ } &--unswitchable { - .van-radio__input { - display: none; - } - .van-radio__label { padding-left: 0; }