From 5516f7866cb9b8e8185c28edeb583e22cf939abf Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 1 Sep 2015 18:23:46 +0800 Subject: [PATCH] Fix radio button style --- style/components/radio.less | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/style/components/radio.less b/style/components/radio.less index 9fba1a6e03..485c875cef 100644 --- a/style/components/radio.less +++ b/style/components/radio.less @@ -161,7 +161,7 @@ background: @primary-color; border-color: @primary-color; color: #fff; - margin-left: -1px; + box-shadow: -1px 0 0 0 @primary-color; &:before { display: none; @@ -174,11 +174,13 @@ &:hover { background: tint(@primary-color, 20%); border-color: tint(@primary-color, 20%); + box-shadow: -1px 0 0 0 tint(@primary-color, 20%); } &:active { background: shade(@primary-color, 5%); border-color: shade(@primary-color, 5%); + box-shadow: -1px 0 0 0 shade(@primary-color, 5%); } } }