Skip to content

Commit 2608fca

Browse files
authored
minor: fix HL color inside Message (#2958)
fix HL color inside Message
1 parent 60bbb98 commit 2608fca

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

app/components/HL.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ export const HL = classed.span`
1414
group-[.text-accent-secondary]:text-accent
1515
group-[.text-error-secondary]:text-error
1616
group-[.text-info-secondary]:text-info
17+
group-[.text-notice-secondary]:text-notice
1718
`

app/ui/lib/Message.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export const Message = ({
8686
{showIcon && (
8787
<div
8888
className={cn(
89-
'mt-[2px] flex [&>svg]:h-3 [&>svg]:w-3',
89+
'mt-0.5 flex [&>svg]:h-3 [&>svg]:w-3',
9090
`[&>svg]:${textColor[variant]}`
9191
)}
9292
>
@@ -96,7 +96,11 @@ export const Message = ({
9696
<div className="flex-1">
9797
{title && <div className="text-sans-semi-md">{title}</div>}
9898
<div
99-
className={cn('text-sans-md [&>a]:tint-underline', secondaryTextColor[variant])}
99+
className={cn(
100+
// group gives HL the right color
101+
'text-sans-md [&>a]:tint-underline group',
102+
secondaryTextColor[variant]
103+
)}
100104
>
101105
{content}
102106
</div>

0 commit comments

Comments
 (0)