mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 23:16:52 +08:00
fix(button) use currentColor fill for icons
This commit is contained in:
@ -39,6 +39,9 @@ $button-ios-border-radius: 4px !default;
|
|||||||
/// @prop - Font size of the button text
|
/// @prop - Font size of the button text
|
||||||
$button-ios-font-size: 1.6rem !default;
|
$button-ios-font-size: 1.6rem !default;
|
||||||
|
|
||||||
|
/// @prop - Color of the button icon
|
||||||
|
$button-ios-icon-fill-color: currentColor !default;
|
||||||
|
|
||||||
/// @prop - Background color of the button
|
/// @prop - Background color of the button
|
||||||
$button-ios-background-color: color($colors-ios, primary) !default;
|
$button-ios-background-color: color($colors-ios, primary) !default;
|
||||||
|
|
||||||
@ -208,6 +211,10 @@ $button-ios-strong-font-weight: 600 !default;
|
|||||||
opacity: $button-ios-opacity-hover;
|
opacity: $button-ios-opacity-hover;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.button-ios .icon {
|
||||||
|
fill: $button-ios-icon-fill-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// iOS Default Button Color Mixin
|
// iOS Default Button Color Mixin
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|||||||
@ -46,6 +46,9 @@ $button-md-font-weight: 500 !default;
|
|||||||
/// @prop - Capitalization of the button text
|
/// @prop - Capitalization of the button text
|
||||||
$button-md-text-transform: uppercase !default;
|
$button-md-text-transform: uppercase !default;
|
||||||
|
|
||||||
|
/// @prop - Color of the button icon
|
||||||
|
$button-md-icon-fill-color: currentColor !default;
|
||||||
|
|
||||||
/// @prop - Background color of the button
|
/// @prop - Background color of the button
|
||||||
$button-md-background-color: color($colors-md, primary) !default;
|
$button-md-background-color: color($colors-md, primary) !default;
|
||||||
|
|
||||||
@ -258,6 +261,10 @@ $button-md-strong-font-weight: bold !default;
|
|||||||
background-color: $button-md-text-color;
|
background-color: $button-md-text-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.button-md .icon {
|
||||||
|
fill: $button-md-icon-fill-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Material Design Default Button Color Mixin
|
// Material Design Default Button Color Mixin
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user