Im trying to change the color of the menu boxes, however nothing seems to work.
What I have done is the following:
First I tried to alter styles.css with the .menu and menu-left without results.
Then changed the _menu.scss file to change the background color there.
Neither of those worked.
When you changed the scss file,have you run your application again i mean, have you used ionic serve --lab for example again, if not you have to do it again, in order to generate the css file again, and if this didn’t work, try to put this line in your “gulpfile.js”
gulp.task(‘serve:before’, [‘sass’, ‘watch’]);
First set the menu background color for ios/md/wp inside variables.scss globally:
If you need to style the buttons inside a list, normal sidemenu syntax that looks like this:
<ion-menu side="left" [content]="content" swipeEnabled="false">
<button color="myColor" menuClose ion-item *ngFor="let p of pages" (click)="openPage(p)">
myColor should be defined as color variable inside the themes/variables.scss file, added to the colors array.
just add these lines inside your variables.scss;
–ion-background-color: var(–ion-color-light); //this is your color just change it to whatever