angular-material-rail-drawer-plugin icon indicating copy to clipboard operation
angular-material-rail-drawer-plugin copied to clipboard

Blinking when opens

Open Rigidoont opened this issue 4 years ago • 2 comments

Hi! When sidenav gets opened it blinks for a moment. This can be seen at stackblitz from a recent issue: https://stackblitz.com/edit/angular-material-mini-variant

When the sidenav's background is white it's not a big deal, but when it's colored the flash becomes apparent. Blink happens only on opening, not closing.

Rigidoont avatar May 31 '20 18:05 Rigidoont

I'll try and find time tomorrow to resolve the issue. Not witnessed it before.

Jordan-Hall avatar May 31 '20 19:05 Jordan-Hall

Hi,

Having the same issue.

FYI, on Safari browser the "blink time" lasts for around a second.

assimo avatar Jun 16 '20 15:06 assimo

Same issue as well. Please note that the background color needs to be something other than white to actually be able to see the flickering!

m4riok avatar Dec 08 '22 13:12 m4riok

I know this is an old one but if anyone else encounters this then the fix is below via css.

Add this to your component.css:

.mat-drawer.mat-drawer-side {
  visibility: visible !important;
}

What I was able to deduce was that the blinking was due to something setting the control to hidden and then right back to visible. With the above css change it won't allow the nav to go hidden and therefore you won't have the "blinking".

DustinBryant avatar Apr 23 '23 00:04 DustinBryant

Thank you @DustinBryant will add it to the mix. Sorry I'll do best to keep this going. Will try and migrate it against soon as 16 drops. But this was.made for a client as proof of concept. I no longer use material design anymore

Jordan-Hall avatar Apr 23 '23 19:04 Jordan-Hall

I know this is an old one but if anyone else encounters this then the fix is below via css.

Add this to your component.css:

.mat-drawer.mat-drawer-side {
  visibility: visible !important;
}

What I was able to deduce was that the blinking was due to something setting the control to hidden and then right back to visible. With the above css change it won't allow the nav to go hidden and therefore you won't have the "blinking".

Nice and thanks! Still blinks once though after first closing animation ended.

dev01111001 avatar May 11 '23 16:05 dev01111001

Issue closed please read https://github.com/Jordan-Hall/angular-material-rail-drawer-plugin/issues/56

Jordan-Hall avatar Oct 03 '23 15:10 Jordan-Hall