diff --git a/app/components/HL.tsx b/app/components/HL.tsx index da6659356..9a5ca1e1b 100644 --- a/app/components/HL.tsx +++ b/app/components/HL.tsx @@ -7,5 +7,11 @@ */ import { classed } from '~/util/classed' -// ox-highlight needed for CSS ensuring the HL color matches the container -export const HL = classed.span`ox-highlight text-sans-md text-default` +// note parent with secondary text color must have 'group' on it for +// this to work. see Toast for an example +export const HL = classed.span` + text-sans-md text-default + group-[.text-accent-secondary]:text-accent + group-[.text-error-secondary]:text-error + group-[.text-info-secondary]:text-info +` diff --git a/app/ui/lib/Toast.tsx b/app/ui/lib/Toast.tsx index 4b55cd4ea..05d3cd8db 100644 --- a/app/ui/lib/Toast.tsx +++ b/app/ui/lib/Toast.tsx @@ -100,7 +100,10 @@ export const Toast = ({ {(title || variant !== 'success') && (
{title || defaultTitle[variant]}
)} -
{content}
+ {/* 'group' is necessary for HL color trick to work. see HL.tsx */} +
+ {content} +
{cta && (