Search code examples
vuetify.jsv-navigation-drawer

Vuetify v-navigation-drawer cannot overflow button


I have a v-navigation-drawer and it's design must include a toggle expand button that overflows the drawer itself like so:

enter image description here

But for some unknown reason, I can't remove the overflow hidden property.

I tried to remove it like this:

    .v-navigation-drawer {
      overflow: auto;

      .v-navigation-drawer__content {
        overflow-x: auto;
      }
    }

No success:

enter image description here

Here the codepend reproducing the issue: https://codepen.io/aug-riedinger/pen/poLjJyq

Can anyone help on this?

Thanks


Solution

  • Just as kael said, you need to set the overflow property to visible for normal and mini variant. Like this:

    .v-navigation-drawer--mini-variant, .v-navigation-drawer {
      overflow: visible !important;
      
    }
    
    .expand-toggle {
      position: absolute;
      height: 3rem;
      z-index: 1;
      right: -14px;
      top: 30px;
      bottom: 0;
      .v-btn {
        margin: auto;
        border: thin solid white !important;
      }
    }
    

    Preview