question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 4 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
brandyscarneycommented, Jan 15, 2020

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 🙂

0reactions
ionitron-bot[bot]commented, Feb 22, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Changing ionic menu color for ios · Issue #20213 - GitHub
Current behavior: I run the ionic start command for the side menu starter, and add these lines to the variables.scss file, inside of...
Read more >
How to set color of side menu button (Hamburger) on ios?
I have an Ionic 4 application, using a side menu, where I my title bar is set to my primary color, and so...
Read more >
Change side menu background color ionic 4 - Stack Overflow
Trying to change the side sliding menu background's color in my ionic 4 project. here is my code : <ion-app> <ion-split-pane> <ion-menu> ...
Read more >
Theming and Styling Ionic 5 Apps: Toolbar and Menu Example
You can change default Ionic 5 colors by going to the src/theme/variables.scss and provides many predefined Ionic 5 Sass variables such as:.
Read more >
Ionicons Usage Guide
When using icons in Ionic Framework you can specify different icons per platform. Use the md and ios attributes and provide the platform...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found