Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug(mat-divider): The divider does not display #9399

Closed
faisalmuhammad opened this issue Jan 15, 2018 · 9 comments

Comments

Projects
None yet
5 participants
@faisalmuhammad
Copy link

commented Jan 15, 2018

Bug, feature request, or proposal:

Bug

What is the expected behavior?

The divider should display independent of the the "mat-list"

What is the current behavior?

The divider does not display in on the page unless I add atleast one "mat-list" in the app.

What are the steps to reproduce?

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

  • Angular 5.0.0
  • Angular Material 5.0.4
@julianobrasil

This comment has been minimized.

Copy link
Contributor

commented Jan 15, 2018

Dupe: #9380

@faisalmuhammad

This comment has been minimized.

Copy link
Author

commented Jan 15, 2018

@julianobrasil , please read the issue again. The issue mentioned by you is totally different. In my case, I have no importing issue and I dont get any error. The problem is with the displaying of the divider. Please see the demos I linked in the issue description. Or did I miss something ?

@julianobrasil

This comment has been minimized.

Copy link
Contributor

commented Jan 15, 2018

@faisalmuhammad, there's a new component, called mat-divider, that is independent of mat-list. It has been made accidentaly available in 5.0.3 and is not available anymore in 5.0.4. It'll probably be available again in 5.1.0. That's why I linked the other issue.

@faisalmuhammad

This comment has been minimized.

Copy link
Author

commented Jan 15, 2018

Makes sense. Thanks for clearing that (Y)

@julianobrasil

This comment has been minimized.

Copy link
Contributor

commented Jan 15, 2018

So you can close this one.

@julianobrasil

This comment has been minimized.

Copy link
Contributor

commented Jan 18, 2018

@faisalmuhammad <mat-divider> is officially available now: https://github.com/angular/material2/blob/master/CHANGELOG.md

@novaterata

This comment has been minimized.

Copy link

commented Jul 10, 2018

mat-divider is still invisible

@crizzy9

This comment has been minimized.

Copy link

commented Sep 3, 2018

Still facing this issue can only see vertical mat-divider inside mat-toolbar. Any fixes available?

@ghinton

This comment has been minimized.

Copy link

commented Dec 6, 2018

You can hardcode the style width / height of the element to a fixed value or % which causes it to render, with or without child elements

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.