mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 11:41:20 +08:00
fix(back-button): default md color is inhered
This commit is contained in:
@ -4,4 +4,4 @@
|
||||
// --------------------------------------------------
|
||||
|
||||
/// @prop - Text color of the back button
|
||||
$back-button-md-color: $toolbar-md-text-color !default;
|
||||
$back-button-md-color: currentColor !default;
|
||||
|
@ -63,6 +63,8 @@ export class BackButton implements ComponentInterface {
|
||||
'ion-activatable': true,
|
||||
class: {
|
||||
...createColorClasses(this.color),
|
||||
|
||||
// ion-buttons target .button
|
||||
'button': true,
|
||||
'show-back-button': showBackButton
|
||||
}
|
||||
|
@ -5,7 +5,7 @@
|
||||
// iOS Toolbar Default Button
|
||||
// --------------------------------------------------
|
||||
|
||||
::slotted(*) ion-button.button {
|
||||
::slotted(*) ion-button {
|
||||
--padding-top: 0;
|
||||
--padding-bottom: 0;
|
||||
--padding-start: 5px;
|
||||
@ -16,7 +16,7 @@
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
::slotted(*) .button:not(.button-round) {
|
||||
::slotted(*) ion-button:not(.button-round) {
|
||||
--border-radius: #{$toolbar-ios-button-border-radius};
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
// Material Design Toolbar Default Button
|
||||
// --------------------------------------------------
|
||||
|
||||
::slotted(*) ion-button.button {
|
||||
::slotted(*) ion-button {
|
||||
--padding-top: 0;
|
||||
--padding-bottom: 0;
|
||||
--padding-start: 8px;
|
||||
@ -16,7 +16,7 @@
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
::slotted(*) .button:not(.button-round) {
|
||||
::slotted(*) ion-button:not(.button-round) {
|
||||
--border-radius: #{$toolbar-md-button-border-radius};
|
||||
}
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
// Toolbar Buttons
|
||||
// --------------------------------------------------
|
||||
|
||||
::slotted(*) .button {
|
||||
::slotted(*) ion-button {
|
||||
--margin-top: 0;
|
||||
--margin-bottom: 0;
|
||||
--margin-start: 0;
|
||||
|
Reference in New Issue
Block a user