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
{{ message }}
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
fix(toast): improve position handling to better align with docs
- position of "" uses documented default positioning
- "bottom left"
- position of "left" or "right" uses default vertical positioning: "bottom"
- improve JSDoc
Closes#11843.
BREAKING CHANGE: `$mdToast.show()`'s position behavior has been updated to be consistent with the documentation. If you relied on the previously undocumented behavior where it defaulted to `top left` instead of `bottom left`, you will need to update your app.
Change your code from this:
```js
$mdToast.show(
$mdToast.simple()
.textContent('Simple Toast!'))
.then(...
```
To this:
```js
$mdToast.show(
$mdToast.simple()
.textContent('Simple Toast!')
.position('top left'))
.then(...
```
0 commit comments