feat(toolbar): support vertical dividers through `mat-divider`
See original GitHub issueBug, feature request, or proposal:
Bug
What is the expected behavior?
It should be possible to display a divider in a mat-toolbar
per the spec:
What is the current behavior?
Placing <mat-divider [vertical]="true">
creates a 0 x 1 pixel element.
What are the steps to reproduce?
In this StackBlitz, you can see the top toolbar has the divider but it’s not visible, while the bottom toolbar manually styles the divider to show up correctly.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Latest everything, as far as I can tell.
Is there anything else we should know?
In the StackBlitz, I have to guess at the pixel height of the divider because I can’t find exactly how tall the line is supposed to be in the spec, even though they do call out the spacing between the line and the icons on either side of it. I think it’s a blind spot in the spec, since neither the Structure nor the Toolbars section actually mentions the use of dividers to logically group controls.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:24
- Comments:13 (5 by maintainers)
Top Results From Across the Web
Divider | Angular Material
<mat-divider> is a component that allows for Material styling of a line ... on its own to create a horizontal or vertical line...
Read more >Material Vertical Divider isn't showing up - Stack Overflow
I made a really simple program because i wanted to try out the vertical divider provided by angular material but for some ...
Read more >ion-item-divider - Ionic Framework
Item Dividers are block elements that can be used to separate items in a list. They are similar to list headers, but instead,...
Read more >Angular Material Divider : Mat-Divider Example
We have three types of material dividers depending upon our usage. Simple divider; Inset divider; Vertical divider. Simple mat-divider example.
Read more >External Systems - Hybrid Analysis
Submit malware for free analysis with Falcon Sandbox and Hybrid Analysis technology. Hybrid Analysis develops and licenses analysis tools to fight malware.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
was this ever fixed ? I’ve just hit the same problem
In your example, the spacing is wrong between the divider and the adjacent buttons. If I’m going to manually style stuff anyway, I don’t think I’d want to add extra wrapping elements like the div you used. The point of the issue is that
<mat-toolbar><button/><mat-divider/><button/></mat-toolbar>
should lay out according to the spec without manual styling, and right now it does not.