mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
feat(toast): add white-space variable for toast message (#20729)
fixes #20727
This commit is contained in:
@ -250,6 +250,7 @@ Type: `Promise<void>`
|
||||
| `--min-height` | Minimum height of the toast |
|
||||
| `--min-width` | Minimum width of the toast |
|
||||
| `--start` | Position from the left if direction is left-to-right, and from the right if direction is right-to-left |
|
||||
| `--white-space` | White space of the toast message |
|
||||
| `--width` | Width of the toast |
|
||||
|
||||
|
||||
|
||||
@ -13,6 +13,8 @@
|
||||
* @prop --border-width: Border width of the toast
|
||||
* @prop --border-style: Border style of the toast
|
||||
*
|
||||
* @prop --white-space: White space of the toast message
|
||||
*
|
||||
* @prop --box-shadow: Box shadow of the toast
|
||||
*
|
||||
* @prop --min-width: Minimum width of the toast
|
||||
@ -37,6 +39,7 @@
|
||||
--min-height: auto;
|
||||
--height: auto;
|
||||
--max-height: auto;
|
||||
--white-space: pre-wrap;
|
||||
|
||||
@include position(0, null, null, 0);
|
||||
|
||||
@ -119,7 +122,7 @@
|
||||
.toast-message {
|
||||
flex: 1;
|
||||
|
||||
white-space: pre-wrap;
|
||||
white-space: var(--white-space);
|
||||
}
|
||||
|
||||
.toast-button-group {
|
||||
|
||||
Reference in New Issue
Block a user