Add toast positioning#32280
Conversation
a569976 to
445f8af
Compare
|
From a really quick look, I definitely dig it ❤️ Needs more eyes from @twbs/css-review EDIT: if we are going to go with this approach, I'm not sure it makes sense to merge #28783 in beta1. |
445f8af to
c93ee96
Compare
b6a3c7d to
f9e2c80
Compare
Fixed that |
f9e2c80 to
d4a1736
Compare
|
Widths need to be ironed out I think... by default, the toasts are shrunk here. Is that behavior we want overall? Would we want to change to this behavior at all times and let folks pick their own It's not until I add wrapping content in one that they hit their |
1d9c825 to
2cc726b
Compare
|
Also, could this arguably wait until another release? Not sure we need to lock in something for the beta release. |
1b50bc0 to
a79043b
Compare
|
Good point, hadn't noticed that. We'll need the Just fixed the shrinking thing by using margins between the toasts instead of the using grid. |
a79043b to
a9c1114
Compare
|
Branch rebased and replaced the renamed classes. @ffoodd RTL-wise does this LGTY? Also, does cheatsheet needs to be updated? |
ffoodd
left a comment
There was a problem hiding this comment.
LGTM!
Since position relies on our utilities, that's already handled and processed by RTLCSS 👍
Regarding cheatsheet, I don't think so but that soemthing to question: I didn't show utilities in the cheatsheet for now. I'll add it to our remaining to-do.
428f736 to
f138a2a
Compare




Alternative for #28783. Uses our built-in spacing utilities doesn't require JavaScript positioning.
Also added
translate-middle-x&translate-middle-yutilities for more positioning possibilities.Preview:
Closes #28783