Ionic side menu button remains with gray shadow on slide gesture to close menu

I’m developing an app which has a side menu, upon testing on my physical device and emulator, i have noticed that when I open the side menu clicking on the <ion-menu-button></ion-menu-button> and try closing it by swiping to the left the <ion-menu-button></ion-menu-button> remains focused/selected (with gray shadow in background). I’ve tried many things but can’t seem to get it to work. Wondering if someone around here has been through this same situation and could help me out.

Thanks in advance.


        <ion-buttons slot="start">


    <ion-menu side="start" menuId="first" contentId="content1"   >
          <ion-toolbar color="primary">
            <ion-menu-toggle auto-hide="false" *ngFor="let p of appPages">
              <ion-item [routerDirection]="'root'" [routerLink]="[p.url]">
                <ion-icon slot="start" [name]="p.icon"></ion-icon>

      <ion-router-outlet id="content1" main></ion-router-outlet>



solved it using following scss:

      --background: transparent!important;
      --background-focused: transparent!important;
      --background-hover : transparent!important;
1 Like