Skip to content

Commit

Permalink
fix: selected row sticky cell background color in dark mode (#19280)
Browse files Browse the repository at this point in the history
  • Loading branch information
daibhin authored Dec 13, 2023
1 parent 236ac85 commit dfd65ae
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
7 changes: 5 additions & 2 deletions frontend/src/lib/lemon-ui/LemonTable/LemonTable.scss
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,10 @@
&.LemonTable__row--status-highlighted {
font-weight: 600;
color: var(--default);
background: var(--primary-bg-hover);

> td:not(.LemonTable__cell--sticky) {
background: var(--primary-bg-hover);
}
}

> td {
Expand Down Expand Up @@ -365,7 +368,7 @@ body:not(.storybook-test-runner) {
}

tr.LemonTable__row--status-highlighted .LemonTable__cell--sticky::before {
background: #e8ecff; // TRICKY: This is a one-off opaque form of --primary-bg-hover, keep in sync with source
background: var(--primary-bg-hover);
}

.scrollable--left {
Expand Down
8 changes: 5 additions & 3 deletions frontend/src/scenes/experiments/ExperimentPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -463,9 +463,11 @@ export function MetricDisplay({ filters }: { filters?: FilterType }): JSX.Elemen
/>
</b>
</div>
{event.properties?.map((prop: AnyPropertyFilter) => (
<PropertyFilterButton key={prop.key} item={prop} />
))}
<div className="space-y-1">
{event.properties?.map((prop: AnyPropertyFilter) => (
<PropertyFilterButton key={prop.key} item={prop} />
))}
</div>
</div>
))}
</>
Expand Down

0 comments on commit dfd65ae

Please sign in to comment.