Skip to content

Commit

Permalink
fix: dark mode tweaks (#18428)
Browse files Browse the repository at this point in the history
  • Loading branch information
daibhin authored Nov 7, 2023
1 parent 7148f03 commit ab04bdd
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 10 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.2);

[theme='dark'] & {
box-shadow: 0px 0px 30px rgba(255, 255, 255, 0.1);
box-shadow: none;
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.PropertyFilterButton {
overflow: hidden;
color: var(--bg-charcoal);
border-color: transparent;
background: var(--border);
display: inline-flex;
Expand All @@ -10,7 +9,7 @@
&:focus {
border-color: var(--border);
background: var(--border);
color: var(--bg-charcoal);
color: var(--text-default);
}

text-shadow: none;
Expand All @@ -27,8 +26,4 @@
overflow: hidden;
text-overflow: ellipsis;
}

.anticon-close {
color: var(--bg-charcoal);
}
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Select } from 'antd'
import { FundOutlined } from '@ant-design/icons'
import { smoothingOptions } from './smoothings'
import { useActions, useValues } from 'kea'
import { insightLogic } from 'scenes/insights/insightLogic'
import { insightVizDataLogic } from 'scenes/insights/insightVizDataLogic'
import { trendsDataLogic } from 'scenes/trends/trendsDataLogic'
import { LemonSelect } from '@posthog/lemon-ui'

export function SmoothingFilter(): JSX.Element | null {
const { insightProps } = useValues(insightLogic)
Expand All @@ -31,9 +31,8 @@ export function SmoothingFilter(): JSX.Element | null {
}))

return options.length ? (
<Select
<LemonSelect
key={interval}
bordered
value={smoothing_intervals || 1}
dropdownMatchSelectWidth={false}
onChange={(key) => {
Expand All @@ -43,6 +42,7 @@ export function SmoothingFilter(): JSX.Element | null {
}}
data-attr="smoothing-filter"
options={options}
size="small"
/>
) : (
<></>
Expand Down
13 changes: 13 additions & 0 deletions frontend/src/styles/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,19 @@ body {
}
.ant-select-dropdown {
z-index: var(--z-ant-select-dropdown);
background-color: var(--bg-3000);

.ant-select-item.ant-select-item-option {
background-color: var(--bg-3000);

&.ant-select-item-option-active {
background-color: var(--border-3000);
}
}
}

.ant-input-number-group-addon {
background: var(--bg-3000);
}

.ant-picker-dropdown {
Expand Down

0 comments on commit ab04bdd

Please sign in to comment.