Skip to content

Commit a8e7941

Browse files
committed
fix(button): remove color shade from clear buttons
1 parent a4137d2 commit a8e7941

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

ionic/components/button/button.ios.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ $button-ios-small-icon-font-size: 1.3em !default;
157157

158158
.button-clear {
159159
border-color: transparent;
160-
color: color-shade($button-ios-color);
160+
color: $button-ios-color;
161161
background-color: transparent;
162162

163163
&.activated {
@@ -167,7 +167,7 @@ $button-ios-small-icon-font-size: 1.3em !default;
167167

168168
&:hover:not(.disable-hover) {
169169
opacity: 0.6;
170-
color: color-shade($button-ios-color);
170+
color: $button-ios-color;
171171
}
172172
}
173173

@@ -178,7 +178,7 @@ $button-ios-small-icon-font-size: 1.3em !default;
178178
@mixin ios-button-clear($color-name, $color-value) {
179179

180180
.button-clear-#{$color-name} {
181-
$fg-color: color-shade($color-value);
181+
$fg-color: $color-value;
182182
border-color: transparent;
183183
background-color: transparent;
184184
color: $fg-color;
@@ -188,7 +188,7 @@ $button-ios-small-icon-font-size: 1.3em !default;
188188
}
189189

190190
&:hover:not(.disable-hover) {
191-
color: color-shade($fg-color);
191+
color: $fg-color;
192192
}
193193
}
194194

ionic/components/button/button.md.scss

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,15 +186,16 @@ $button-md-small-icon-font-size: 1.4em !default;
186186
opacity: 1;
187187
box-shadow: none;
188188
background-color: transparent;
189-
color: color-shade($button-md-color);
189+
color: $button-md-color;
190190

191191
&.activated {
192192
background-color: $button-md-clear-active-background-color;
193193
box-shadow: none;
194194
}
195195

196196
&:hover:not(.disable-hover) {
197-
color: color-shade($button-md-color);
197+
198+
color: $button-md-color;
198199
}
199200
}
200201

@@ -205,7 +206,7 @@ $button-md-small-icon-font-size: 1.4em !default;
205206
@mixin md-button-clear($color-name, $color-value) {
206207

207208
.button-clear-#{$color-name} {
208-
$fg-color: color-shade($color-value);
209+
$fg-color: $color-value;
209210
border-color: transparent;
210211
background-color: transparent;
211212
color: $fg-color;
@@ -217,7 +218,7 @@ $button-md-small-icon-font-size: 1.4em !default;
217218
}
218219

219220
&:hover:not(.disable-hover) {
220-
color: color-shade($fg-color);
221+
color: $fg-color;
221222
}
222223
}
223224
}

0 commit comments

Comments
 (0)