You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(toolbar): no longer auto-generate toolbar rows (#6661)
Currently the toolbar always generates the first `<md-toolbar-row>`. This means that developers have no opportunity to set directives/attributes/classes on the first toolbar row (e.g with flex-layout).
With this change, the toolbar won't auto-generate any `<md-toolbar-row>` element.
The toolbar will have two different row modes:
_Single row toolbar_
```html
<md-toolbar>
First Tow
</md-toolbar>
```
_Multiple rows toolbar_
```html
<md-toolbar>
<md-toolbar-row>First Row</md-toolbar-row>
<md-toolbar-row>Second Row</md-toolbar-row>
</md-toolbar>
```
This means that mixing those two row modes is no longer possible and allowed
```html
<md-toolbar>
<span>First Row</span>
<md-toolbar-row>Second Row</md-toolbar-row>
</md-toolbar>
```
BREAKING CHANGE: `<md-toolbar-row>` elements will be no longer auto-generated for the first row. Meaning that custom styling for the first `<md-toolbar-row>` is no longer working as before. Since no toolbar-row is auto-generated anymore, there are two different modes for the toolbar now. Either place content directly inside of the `<md-toolbar>` or place multiple `<md-toolbar-row>` elements.
Fixes#6004. Fixes#1718.
0 commit comments