Skip to content

Commit 7c22ec5

Browse files
committed
fix: add explicit semi-transparent background color variables
Add dedicated CSS variables for 50% opacity backgrounds (bg-secondary-50, bg-tertiary-50) since Tailwind's opacity modifier doesn't work with CSS variable hex values. Update all components to use the new color classes.
1 parent e90fd33 commit 7c22ec5

File tree

11 files changed

+16
-10
lines changed

11 files changed

+16
-10
lines changed

src/components/Board/AssigneePicker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export function AssigneePicker({
116116
handleSelect(assignee.email)
117117
}}
118118
className={`flex cursor-pointer items-center gap-3 px-4 py-2 transition-colors ${
119-
isSelected ? 'bg-bg-tertiary/50' : ''
119+
isSelected ? 'bg-bg-tertiary-50' : ''
120120
} ${isFocused ? 'ring-2 ring-inset ring-accent-primary' : 'hover:bg-bg-tertiary'}`}
121121
>
122122
{/* Account circle icon */}

src/components/Board/BacklogSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export function BacklogSection({
172172
if (isDropTarget) {
173173
return `${base} bg-accent-warning/10 ring-2 ring-dashed ring-accent-warning`
174174
}
175-
return `${base} bg-bg-secondary/50`
175+
return `${base} bg-bg-secondary-50`
176176
}
177177

178178
return (

src/components/Board/Column.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export function Column({
135135
if (isDropTarget) {
136136
return `${base} bg-accent-warning/10 ring-2 ring-dashed ring-accent-warning`
137137
}
138-
return `${base} bg-bg-secondary/50`
138+
return `${base} bg-bg-secondary-50`
139139
}
140140

141141
return (

src/components/Board/PointsPicker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export function PointsPicker({
131131
handleSelect(option.value)
132132
}}
133133
className={`flex cursor-pointer items-center justify-between px-4 py-2 transition-colors ${
134-
isSelected ? 'bg-bg-tertiary/50' : ''
134+
isSelected ? 'bg-bg-tertiary-50' : ''
135135
} ${isFocused ? 'ring-2 ring-inset ring-accent-primary' : 'hover:bg-bg-tertiary'}`}
136136
>
137137
<span className="text-sm font-medium text-text-primary">{option.label}</span>

src/components/Board/PriorityPicker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export function PriorityPicker({
116116
handleSelect(option.value)
117117
}}
118118
className={`flex cursor-pointer items-center gap-3 px-4 py-2 transition-colors ${
119-
isSelected ? 'bg-bg-tertiary/50' : ''
119+
isSelected ? 'bg-bg-tertiary-50' : ''
120120
} ${isFocused ? 'ring-2 ring-inset ring-accent-primary' : 'hover:bg-bg-tertiary'}`}
121121
>
122122
{/* Color indicator */}

src/components/Board/QeVerifyPicker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export function QeVerifyPicker({
115115
handleSelect(option.value)
116116
}}
117117
className={`flex cursor-pointer items-center gap-3 px-4 py-2 transition-colors ${
118-
isSelected ? 'bg-bg-tertiary/50' : ''
118+
isSelected ? 'bg-bg-tertiary-50' : ''
119119
} ${isFocused ? 'ring-2 ring-inset ring-accent-primary' : 'hover:bg-bg-tertiary'}`}
120120
>
121121
{/* Label and description */}

src/components/Board/SeverityPicker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export function SeverityPicker({
116116
handleSelect(option.value)
117117
}}
118118
className={`flex cursor-pointer items-center gap-3 px-4 py-2 transition-colors ${
119-
isSelected ? 'bg-bg-tertiary/50' : ''
119+
isSelected ? 'bg-bg-tertiary-50' : ''
120120
} ${isFocused ? 'ring-2 ring-inset ring-accent-primary' : 'hover:bg-bg-tertiary'}`}
121121
>
122122
{/* Color indicator */}

src/components/FAQ/FaqModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export function FAQModal({ isOpen, onClose }: FAQModalProps) {
135135
<div className="max-h-[60vh] overflow-y-auto px-6 py-4">
136136
<div className="space-y-4">
137137
{faqs.map((faq, index) => (
138-
<div key={index} className="rounded-lg bg-bg-tertiary/50 p-4">
138+
<div key={index} className="rounded-lg bg-bg-tertiary-50 p-4">
139139
<h3 className="mb-2 flex items-start gap-2 font-bold text-text-primary">
140140
<span className="material-icons text-accent-primary">help</span>
141141
{faq.question}

src/components/Filters/AssigneeFilter.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export function AssigneeFilter({
101101
handleSelect(null)
102102
}}
103103
className={`flex cursor-pointer items-center gap-3 px-4 py-2 transition-colors hover:bg-bg-tertiary ${
104-
selectedAssignee === null ? 'bg-bg-tertiary/50' : ''
104+
selectedAssignee === null ? 'bg-bg-tertiary-50' : ''
105105
}`}
106106
>
107107
<span className="material-icons text-text-tertiary">group</span>
@@ -126,7 +126,7 @@ export function AssigneeFilter({
126126
handleSelect(assignee.email)
127127
}}
128128
className={`flex cursor-pointer items-center gap-3 px-4 py-2 transition-colors hover:bg-bg-tertiary ${
129-
isSelected ? 'bg-bg-tertiary/50' : ''
129+
isSelected ? 'bg-bg-tertiary-50' : ''
130130
}`}
131131
>
132132
<span className="material-icons text-text-tertiary">account_circle</span>

src/index.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
/* Background layers */
1616
--color-bg-primary: #0a0a0a;
1717
--color-bg-secondary: #141414;
18+
--color-bg-secondary-50: #14141480;
1819
--color-bg-tertiary: #1e1e1e;
20+
--color-bg-tertiary-50: #1e1e1e80;
1921

2022
/* Text colors */
2123
--color-text-primary: #f5f5f5;
@@ -53,7 +55,9 @@
5355
/* Background layers */
5456
--color-bg-primary: #fff;
5557
--color-bg-secondary: #f5f5f5;
58+
--color-bg-secondary-50: #f5f5f580;
5659
--color-bg-tertiary: #e5e5e5;
60+
--color-bg-tertiary-50: #e5e5e580;
5761

5862
/* Text colors */
5963
--color-text-primary: #171717;

0 commit comments

Comments
 (0)