fix(tab-bar): adds selected color if tab bar is using a color (#16766)

fixes #16761
This commit is contained in:
Paul Stelzer
2018-12-17 17:22:59 +01:00
committed by Brandy Carney
parent 9b0fe957e9
commit 54e5a244ef
2 changed files with 4 additions and 2 deletions

View File

@ -41,6 +41,7 @@
:host(.ion-color) ::slotted(ion-tab-button) { :host(.ion-color) ::slotted(ion-tab-button) {
--background-focused: #{current-color(shade)}; --background-focused: #{current-color(shade)};
--color-selected: #{current-color(contrast)};
} }
:host(.ion-color) ::slotted(.tab-selected) { :host(.ion-color) ::slotted(.tab-selected) {

View File

@ -233,8 +233,9 @@
border-radius: 50%; border-radius: 50%;
max-width: 80px; max-width: 80px;
height: 80px; height: 80px;
background: #3880ff; --background: #3880ff;
color: white; --color: rgba(255, 255, 255, .7);
--color-selected: white;
} }
.main-tab-icon { .main-tab-icon {