Skip to content

An opinionated toast component for React.

Inherit color for description when rich colors is true (#615)

Emil Kowalski2fcaff7535c7
diff --git a/src/styles.css b/src/styles.css
index 8020418..c6b7149 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -134,6 +134,10 @@ html[dir='rtl'],
color: #3f3f3f;
}
+[data-rich-colors='true'][data-sonner-toast][data-styled='true'] [data-description] {
+ color: inherit;
+}
+
[data-sonner-toaster][data-sonner-theme='dark'] [data-description] {
color: hsl(0, 0%, 91%);
}