Changing ionic menu color for ios
See original GitHub issue[x] 4.11.5
[x] bug report [ ] feature request
Current behavior: I run the ionic start command for the side menu starter, and add these lines to the variables.scss file, inside of the :root object:
--ion-toolbar-background: var(--ion-color-primary);
--ion-toolbar-color: var(--ion-color-light);
For android, the ion-menu-button and ion-back-button change to the toolbar color property, but on ios they are still set to primary, making the buttons invisible.
I am arguing this is a bug because of the varied behaviors between ios and android
Expected behavior: I would expect the colors to be the same between ios and android
Steps to reproduce: ionic starter: side menu Add this to the variables.scss file under :root object: –ion-toolbar-background: var(–ion-color-primary); –ion-toolbar-color: var(–ion-color-light); Run in ios and android, they will be different
Related code:
Other information:
Ionic info:
Ionic:
Ionic CLI : 5.4.13 (/usr/local/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.11.8
@angular-devkit/build-angular : 0.801.3
@angular-devkit/schematics : 8.1.3
@angular/cli : 8.1.3
@ionic/angular-toolkit : 2.1.2
Cordova:
Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : not available
Cordova Plugins : not available
Utility:
cordova-res : 0.8.1
native-run : 0.3.0
System:
Android SDK Tools : 26.1.1 (/Users/lucas.crandle/Library/Android/sdk)
ios-deploy : 2.0.0
ios-sim : 8.0.2
NodeJS : v12.14.1 (/usr/local/bin/node)
npm : 6.13.4
OS : macOS Mojave
Xcode : Xcode 11.3 Build version 11C29```
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (3 by maintainers)
Top GitHub Comments
So oddly enough I actually found that this may be a problem and put a TODO on my branch 😁
https://github.com/ionic-team/ionic/blob/fix-hover-states/core/src/components/menu-button/menu-button.scss#L161
Working on fixing this up but it will be part of that PR I linked 🙂
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.