Skip to content

Commit 5222aa9

Browse files
author
nik
committed
fix: BROS-705: Task Summary table is not adapted to Dark mode
1 parent 9955039 commit 5222aa9

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

web/libs/editor/src/components/TaskSummary/Aggregation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ export const AggregationTableRow = ({
205205
<td
206206
key={header.id}
207207
className={cnm(
208-
"px-4 py-2.5 overflow-hidden border-r border-r-neutral-border border-l border-y-2 border-neutral-border-bold bg-white",
208+
"px-4 py-2.5 overflow-hidden border-r border-r-neutral-border border-l border-y-2 border-neutral-border-bold bg-neutral-background",
209209
"sticky left-0 z-20",
210210
)}
211211
style={{ width: header.getSize() }}

web/libs/editor/src/components/TaskSummary/LabelingSummary.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,12 +214,10 @@ export const LabelingSummary = ({ hideInfo, annotations: all, controls, onSelect
214214
left: isSticky ? 0 : "auto",
215215
width: cell.column.getSize(),
216216
zIndex: isSticky ? 10 : "auto",
217-
// @todo fix with proper tailwind classes
218-
backgroundColor: isEvenRow ? undefined : "white",
219217
}}
220218
className={cnm(
221219
"px-4 py-2.5 align-top overflow-hidden transition-colors",
222-
isEvenRow ? "bg-neutral-surface" : "bg-white",
220+
isEvenRow ? "bg-neutral-surface" : "bg-neutral-background",
223221
"group-hover:bg-neutral-surface-subtle",
224222
!isLastRow && "border-b border-neutral-border-subtle",
225223
isSticky && "border-r border-neutral-border",

0 commit comments

Comments
 (0)