From 7cb1fb02b83017bd683d0d072d081b27d3be8a4d Mon Sep 17 00:00:00 2001 From: afc163 Date: Sat, 28 May 2016 15:47:02 +0800 Subject: [PATCH] color fix inside button #1882 --- components/button/style/mixin.less | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/components/button/style/mixin.less b/components/button/style/mixin.less index 183bb29982..ee4d4b48a8 100644 --- a/components/button/style/mixin.less +++ b/components/button/style/mixin.less @@ -35,6 +35,20 @@ color: @color; background-color: @background; border-color: @border; + // a inside Button which only work in Chrome + // http://stackoverflow.com/a/17253457 + > a:only-child { + color: currentColor; + &:after { + content: ''; + position: absolute; + top: 0; + left: 0; + bottom: 0; + right: 0; + background: transparent; + } + } } .button-group-base(@btnClassName) {