fix(back-button): default md color is inhered

This commit is contained in:
Manu Mtz.-Almeida
2018-09-25 20:49:23 +02:00
parent 913e800ee2
commit d0867b5bbf
5 changed files with 8 additions and 6 deletions

View File

@ -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;

View File

@ -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
}

View File

@ -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};
}

View File

@ -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};
}

View File

@ -13,7 +13,7 @@
// Toolbar Buttons
// --------------------------------------------------
::slotted(*) .button {
::slotted(*) ion-button {
--margin-top: 0;
--margin-bottom: 0;
--margin-start: 0;