This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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(... ```
- Loading branch information
Showing
2 changed files
with
28 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters