Skip to content

Commit 65b4eff

Browse files
samejrTrigger.dev RepoOps
authored andcommitted
fix(webapp): improve incident panel contrast in light themes
The active-incident panel in the dashboard side menu is now legible in the light and white themes. <img width="680" height="1800" alt="incident-sidebar-white" src="https://github.com/user-attachments/assets/16dc7d96-330c-4449-b0c8-55d11a9e3819" /> Mono-RevId: 3c4b7fb29867f83b428573460d95bd2ea6da66d0
1 parent 3b27353 commit 65b4eff

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

apps/webapp/app/routes/resources.incidents.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ export function IncidentStatusPanel({
120120
>
121121
<SimpleTooltip
122122
button={
123-
<PopoverTrigger className="flex h-8! w-full items-center justify-center rounded border border-yellow-500/30 bg-yellow-500/15 transition-colors hover:border-yellow-500/50 hover:bg-yellow-500/25">
124-
<ExclamationTriangleIcon className="size-5 text-yellow-400" />
123+
<PopoverTrigger className="flex h-8! w-full items-center justify-center rounded border border-warning/30 bg-warning/10 transition-colors hover:border-warning/50 hover:bg-warning/20">
124+
<ExclamationTriangleIcon className="size-5 text-warning" />
125125
</PopoverTrigger>
126126
}
127127
content="Active incident"
@@ -141,24 +141,24 @@ export function IncidentStatusPanel({
141141

142142
function IncidentPanelContent({ message }: { message: string }) {
143143
return (
144-
<div className="flex flex-col gap-2 rounded border border-yellow-500/30 bg-yellow-500/10 p-2 pt-1.5">
145-
<div className="flex items-center gap-1 border-b border-yellow-500/30 pb-1">
146-
<ExclamationTriangleIcon className="size-4 text-yellow-400" />
147-
<Paragraph variant="small/bright" className="text-yellow-300">
144+
<div className="flex flex-col gap-2 rounded border border-warning/30 bg-warning/10 p-2 pt-1.5">
145+
<div className="flex items-center gap-1 border-b border-warning/20 pb-1">
146+
<ExclamationTriangleIcon className="size-4 text-warning" />
147+
<Paragraph variant="small/bright" className="text-callout-warning-text">
148148
Active incident
149149
</Paragraph>
150150
</div>
151-
<Paragraph variant="extra-small/bright" className="text-yellow-300">
151+
<Paragraph variant="extra-small/bright" className="text-callout-warning-text">
152152
{message}
153153
</Paragraph>
154154
<LinkButton
155155
variant="secondary/small"
156156
to="https://status.trigger.dev"
157157
target="_blank"
158158
fullWidth
159-
className="border-yellow-500/30 bg-yellow-500/15 hover:border-yellow-500/50! hover:bg-yellow-500/25!"
159+
className="border-warning/30 bg-warning/10 hover:border-warning/50! hover:bg-warning/20!"
160160
>
161-
<span className="text-yellow-300">View status page</span>
161+
<span className="text-callout-warning-text">View status page</span>
162162
</LinkButton>
163163
</div>
164164
);

0 commit comments

Comments
 (0)