You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[IONIC 4 rc.0] tabs --background-focused variable not working #17042
Current behavior:
The background of ion-tab-button elements remains unchanged when they receive focus, even though the --background-focused CCS4 variable for ion-tab-button elements is set.
changed the title [-][IONIC 4 rc.1] tabs --background-focused variable not working[/-][+][IONIC 4 rc.0] tabs --background-focused variable not working[/+]on Jan 10, 2019
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Activity
[-][IONIC 4 rc.1] tabs --background-focused variable not working[/-][+][IONIC 4 rc.0] tabs --background-focused variable not working[/+]brandyscarney commentedon Jan 10, 2019
Thanks for the issue! I can reproduce this. The tab button is applying the following CSS:
It likely needs to be updated to match button/fab:
SimonBrazell commentedon Feb 14, 2019
@vali-de-man I've found a work around for this, seems to work when you create the following class on the tabs component:
vali-de-man commentedon Mar 21, 2019
@SimonBrazell thanks for sharing!
Does this set the color when the tab receives focus though? The class name implies it determines the color of the tab when selected. Will try it out!
carlosnewmusic commentedon May 10, 2019
this also happens with ionic-button, since the effect does not apply
`ion-button {
--background-focused : #961300;
}`
liamdebeasi commentedon May 14, 2019
Hi everyone,
This issue has been resolved via #17502 and will be in the next version of Ionic.
I have published a nightly build of Ionic if you would like to test this fix out (
npm i @ionic/angular@dev).Thanks for using Ionic!
merge release-4.4.1
ionitron-bot commentedon Jun 13, 2019
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.