-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add toast positioning #32280
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's do it!
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
a79043b
to
a9c1114
Compare
Branch rebased and replaced the renamed classes. @ffoodd RTL-wise does this LGTY? Also, does cheatsheet needs to be updated? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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-y
utilities for more positioning possibilities.Preview:
Closes #28783