Skip to content

Commit 2c97dec

Browse files
authored
Merge pull request #4492 from mxovd/toast-docu
Add information about ToastRack styling to the toast widget documentation
2 parents 24a673f + 1f67f09 commit 2c97dec

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

docs/widgets/toast.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,21 @@ A widget which displays a notification message.
1414
You can customize the style of Toasts by targeting the `Toast` [CSS type](../guide/CSS.md#type-selector).
1515
For example:
1616

17-
1817
```scss
1918
Toast {
2019
padding: 3;
2120
}
2221
```
2322

23+
If you wish to change the location of Toasts, it is possible by targeting the `ToastRack` CSS type.
24+
For example:
25+
26+
```scss
27+
ToastRack {
28+
align: right top;
29+
}
30+
```
31+
2432
The three severity levels also have corresponding
2533
[classes](../guide/CSS.md#class-name-selector), allowing you to target the
2634
different styles of notification. They are:

0 commit comments

Comments
 (0)