mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 14:01:20 +08:00
fix(button): activated background color should be darker
This commit is contained in:
@ -46,7 +46,7 @@ button[disabled],
|
||||
|
||||
@mixin ios-button-default($color-name) {
|
||||
$bg-color: ion-color($colors-ios, $color-name, base, ios);
|
||||
$bg-color-activated: ion-color($colors-ios, $color-name, tint, ios);
|
||||
$bg-color-activated: ion-color($colors-ios, $color-name, shade, ios);
|
||||
$bg-color-focused: ion-color($colors-ios, $color-name, shade, ios);
|
||||
$fg-color: ion-color($colors-ios, $color-name, contrast, ios);
|
||||
|
||||
|
@ -46,7 +46,7 @@ $button-ios-background-color: ion-color($colors-ios, prima
|
||||
$button-ios-text-color: ion-color($colors-ios, $button-ios-background-color, contrast, ios) !default;
|
||||
|
||||
/// @prop - Background color of the activated button
|
||||
$button-ios-background-color-activated: ion-color($colors-ios, $button-ios-background-color, tint, ios) !default;
|
||||
$button-ios-background-color-activated: ion-color($colors-ios, $button-ios-background-color, shade, ios) !default;
|
||||
|
||||
/// @prop - Opacity of the activated button
|
||||
$button-ios-opacity-activated: 1 !default;
|
||||
|
@ -57,7 +57,7 @@ button[disabled],
|
||||
|
||||
@mixin md-button-default($color-name) {
|
||||
$bg-color: ion-color($colors-md, $color-name, base, md);
|
||||
$bg-color-activated: ion-color($colors-md, $color-name, tint, md);
|
||||
$bg-color-activated: ion-color($colors-md, $color-name, shade, md);
|
||||
$bg-color-focused: ion-color($colors-md, $color-name, shade, md);
|
||||
$fg-color: ion-color($colors-md, $color-name, contrast, md);
|
||||
|
||||
|
@ -64,7 +64,7 @@ $button-md-transition-timing-function: cubic-bezier(.4, 0, .2, 1) !default;
|
||||
$button-md-background-color-hover: $button-md-background-color !default;
|
||||
|
||||
/// @prop - Background color of the activated button
|
||||
$button-md-background-color-activated: ion-color($colors-md, $button-md-background-color, tint, md) !default;
|
||||
$button-md-background-color-activated: ion-color($colors-md, $button-md-background-color, shade, md) !default;
|
||||
|
||||
/// @prop - Opacity of the activated button
|
||||
$button-md-opacity-activated: 1 !default;
|
||||
|
Reference in New Issue
Block a user