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.

Fixed Sidenav is clipped by mat-sidenav-container in Safari

See original GitHub issue

Bug, feature request, or proposal:

Bug

What is the expected behavior?

mat-sidenav element to display fixed in Safari, this sidenav is the one generated with Angular CLI. ng generate @angular/material:material-nav --name=my-nav-example

What is the current behavior?

Works fine in Google Chrome, but it’s hidden in Safari 11.1. (See snapshots below)

What are the steps to reproduce?

In a new project generate the sidnav. ng generate @angular/material:material-nav --name=my-nav-example Place it in app.component.html.

I have build the project into production and the issue still persists.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

@angular/material”: { “version”: “6.0.2”, “resolved”: “https://registry.npmjs.org/@angular/material/-/material-6.0.2.tgz”, “integrity”: “sha512-928g7cnnRIJJx9/pC5GWqypcxrKkfijTCrCC6yeypvcgab1pmsk7m+1uE8VSFGIsUb6x8W3CF5nJUT1viuBIZg==”, “requires”: { “tslib”: “^1.7.1” }

Google Chrome

screen shot 2018-06-08 at 14 54 48

Safari

screen shot 2018-06-08 at 14 54 55

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:19 (3 by maintainers)

github_iconTop GitHub Comments

12reactions
Mischazzcommented, Jul 30, 2018

mat-drawer-container{ overflow: visible; } I added this as temporary fix. That worked for me

8reactions
ghostcommented, Sep 22, 2018

@Mischazz thanks a lot for that! I think it has to be .mat-drawer-container{ overflow: visible; } though, just for anyone wondering in the future.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CSS of mat-sidenav-container broken on safari - Stack Overflow
I am using a mat-sidenav-container. My codes run properly on İE, Chrome, Firefox. but broken only on safari; app-header must be on top...
Read more >
Kendo Dialog not showing correctly in Safari on Mac - Telerik
Many of our users are using Safari 13 on a Mac and have reported problems where the dialogs are clipping off the bottom...
Read more >
Angular Material Tutorial 27 | Sidebar - YouTube
Step by step tutorial on how to use Angular Material Sidenav. The Angular Material sidebar is an Angular directive is used to show...
Read more >
Mat-Sidenav-Content Content Is Being Overflowed Behind ...
The sidenav components are designed to add side content to a fullscreen app. ... to I wish I could force fixed position in...
Read more >
UNPKG - @angular/material
... mat-select,\\n mat-sidenav,\\n mat-sidenav-container,\\n mat-slider,\\n ... code === BACKSPACE;\n // If they are on an empty input and hit backspace, ...
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