Skip to content

Commit c020176

Browse files
committed
fix(webapp): use white text on solid indigo backgrounds in light mode
The primary PopoverArrowTrigger variant and the calendar's selected-day state used the theme-flipping `text-text-bright` token on a solid `bg-indigo-600` background. In light mode that token resolves to near-black, so the label sat as dark grey on indigo and was hard to read. Hardcode `text-white` on these solid indigo surfaces, matching the established pattern in Buttons.tsx. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent c526528 commit c020176

4 files changed

Lines changed: 11 additions & 5 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
area: webapp
3+
type: fix
4+
---
5+
6+
Fix unreadable dark text in light mode on the "Mark error as…" button and on selected dates in date pickers — both now use white text on their blue background.

apps/webapp/app/components/primitives/Calendar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export function Calendar({
104104
range_start: "day-range-start rounded-l-md",
105105
range_end: "day-range-end rounded-r-md",
106106
selected:
107-
"bg-indigo-600 text-text-bright hover:bg-indigo-600 hover:text-text-bright focus:bg-indigo-600 focus:text-text-bright rounded-md",
107+
"bg-indigo-600 text-white hover:bg-indigo-600 hover:text-white focus:bg-indigo-600 focus:text-white rounded-md",
108108
today: "bg-background-raised text-text-bright rounded-md",
109109
outside:
110110
"day-outside text-text-dimmed opacity-50 aria-selected:bg-background-raised/50 aria-selected:text-text-dimmed aria-selected:opacity-30",

apps/webapp/app/components/primitives/Popover.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,9 @@ const popoverArrowTriggerVariants = {
213213
},
214214
primary: {
215215
trigger:
216-
"bg-indigo-600 border border-indigo-500 text-text-bright hover:bg-indigo-500 hover:border-indigo-400 disabled:opacity-50 disabled:pointer-events-none",
217-
text: "text-text-bright hover:text-white",
218-
icon: "text-text-bright",
216+
"bg-indigo-600 border border-indigo-500 text-white hover:bg-indigo-500 hover:border-indigo-400 disabled:opacity-50 disabled:pointer-events-none",
217+
text: "text-white",
218+
icon: "text-white",
219219
},
220220
secondary: {
221221
trigger:

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.errors.$fingerprint/route.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ function ErrorStatusDropdown({
801801
<>
802802
<Popover open={popoverOpen} onOpenChange={setPopoverOpen}>
803803
<PopoverArrowTrigger variant="primary" disabled={isSubmitting} className="items-center">
804-
<IconCircleDotted className="-ml-1 mr-1 size-3.5 text-text-bright" />
804+
<IconCircleDotted className="-ml-1 mr-1 size-3.5 text-white" />
805805
Mark error as…
806806
</PopoverArrowTrigger>
807807
<PopoverContent className="inline-flex min-w-0! flex-col p-1" align="end">

0 commit comments

Comments
 (0)