Toast background colors #1211
Replies: 5 comments 11 replies
-
|
@timgavin When I call Have you tried CSS to target these? |
Beta Was this translation helpful? Give feedback.
-
|
This is my solution... ´´´ [data-flux-toast-dialog][data-variant="success"] div { [data-flux-toast-dialog][data-variant="warning"] div { [data-flux-toast-dialog][data-variant="danger"] div { |
Beta Was this translation helpful? Give feedback.
-
|
The color set supported by badges is great. It would be awesome for toast as it's very important for them to visually capture the eye, and not blend into the color scheme. |
Beta Was this translation helpful? Give feedback.
-
|
I’ve also made a version for inverted toasts, which should really make them pop! :) [data-flux-toast-dialog] div {
@apply text-white! dark:text-white! bg-zinc-900! dark:bg-zinc-600! border-black! dark:border-zinc-500!;
}
[data-flux-toast-dialog][data-variant="success"] div svg:not(:where(button *)) {
@apply text-green-500! dark:text-green-500!;
}
[data-flux-toast-dialog][data-variant="warning"] div svg:not(:where(button *)) {
@apply text-yellow-500! dark:text-yellow-500!;
}
[data-flux-toast-dialog][data-variant="danger"] div svg:not(:where(button *)) {
@apply text-red-500! dark:text-red-400!;
} |
Beta Was this translation helpful? Give feedback.
-
|
See here the showcase #2535 |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
The toasts don't stand out on my site at all - they get lost in the background and don't pop. I would love to add background colors and my own icons. Would it be possible to allow
classandiconattributes like other components?If not, what about adding a class name to each variant? It's not consistent with the rest of the library, but something as simple as this would do the trick I think
And then we can style it in CSS
Beta Was this translation helpful? Give feedback.
All reactions