Commit 7a6c87f8c1aa34a7a00506fb89fb231e3a176f6f
1 parent
68ceb287
fix(button): fix button style error close #312
Showing
3 changed files
with
9 additions
and
4 deletions
CHANGELOG.zh_CN.md
src/design/ant/btn.less
@@ -14,6 +14,11 @@ | @@ -14,6 +14,11 @@ | ||
14 | // bottom: 1px; | 14 | // bottom: 1px; |
15 | // } | 15 | // } |
16 | // } | 16 | // } |
17 | + &-link:hover, | ||
18 | + &-link:focus, | ||
19 | + &-link:active { | ||
20 | + border-color: transparent !important; | ||
21 | + } | ||
17 | 22 | ||
18 | &-primary { | 23 | &-primary { |
19 | color: @white; | 24 | color: @white; |
@@ -70,6 +75,7 @@ | @@ -70,6 +75,7 @@ | ||
70 | &:hover, | 75 | &:hover, |
71 | &:focus { | 76 | &:focus { |
72 | color: @button-success-hover-color; | 77 | color: @button-success-hover-color; |
78 | + border-color: transparent; | ||
73 | } | 79 | } |
74 | } | 80 | } |
75 | 81 | ||
@@ -111,6 +117,7 @@ | @@ -111,6 +117,7 @@ | ||
111 | &:hover, | 117 | &:hover, |
112 | &:focus { | 118 | &:focus { |
113 | color: @button-warn-hover-color; | 119 | color: @button-warn-hover-color; |
120 | + border-color: transparent; | ||
114 | } | 121 | } |
115 | } | 122 | } |
116 | 123 | ||
@@ -144,6 +151,7 @@ | @@ -144,6 +151,7 @@ | ||
144 | &:hover, | 151 | &:hover, |
145 | &:focus { | 152 | &:focus { |
146 | color: @button-error-hover-color; | 153 | color: @button-error-hover-color; |
154 | + border-color: transparent; | ||
147 | } | 155 | } |
148 | } | 156 | } |
149 | 157 | ||
@@ -165,9 +173,6 @@ | @@ -165,9 +173,6 @@ | ||
165 | color: @white; | 173 | color: @white; |
166 | background-color: fade(@button-error-color, 40%); | 174 | background-color: fade(@button-error-color, 40%); |
167 | border-color: fade(@button-error-color, 40%); | 175 | border-color: fade(@button-error-color, 40%); |
168 | - | ||
169 | - // background-color: @button-error-disabled-color; | ||
170 | - // border-color: @button-error-disabled-color ; | ||
171 | } | 176 | } |
172 | } | 177 | } |
173 | 178 |