Skip to content

Commit

Permalink
Fixed field list background color in dark mode (#39)
Browse files Browse the repository at this point in the history
Use the right background color in darkmode for the popular fields list
  • Loading branch information
kyle-sammons authored Nov 9, 2023
1 parent 1e17a4d commit 4c1a1c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/explore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import {
Input,
Counter,
LoadingPlaceholder,
useTheme2
} from '@grafana/ui';
import { Observable } from 'rxjs';
import { map } from 'rxjs/operators';
Expand Down Expand Up @@ -247,11 +248,12 @@ const KalDBFieldsList = (fields: Field[], topTenMostPopularFields: Field[]) => {
return 'Unknown field';
};


return (
<div>
<div
style={{
backgroundColor: '#e6f1fa',
backgroundColor: useTheme2().isDark ? '#343741' : '#e6f1fa',
}}
>
<span
Expand Down

0 comments on commit 4c1a1c7

Please sign in to comment.