Skip to content

Commit

Permalink
Merge pull request #36 from ryjac/main
Browse files Browse the repository at this point in the history
fix: 💚 Dark Mode Support
  • Loading branch information
pcbowers authored Dec 4, 2024
2 parents ffac2c7 + 03b6fb8 commit e684d41
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
7 changes: 6 additions & 1 deletion src/components/TagsInput.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
transition: none !important;
}

.input {
color: var(--input-fg-color) !important;
}

.control:hover {
border-color: var(--card-border-color) !important;
}
Expand All @@ -15,6 +19,7 @@

.option {
background-color: var(--card-bg-color) !important;
color: var(--input-fg-color) !important;
}

.option:hover {
Expand All @@ -27,7 +32,7 @@

.placeholder,
.singleValue {
color: var(--card-fg-color) !important;
color: var(--input-fg-color) !important;
}

.multiValue {
Expand Down
9 changes: 5 additions & 4 deletions src/components/TagsInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,13 +225,15 @@ export const TagsInput = forwardRef<StateManagedSelect, TagsInputProps>(
styles: {
menu: (base) => ({
...base,
zIndex: 11, // Adjusted dropdown menu z-index to prevent overlap with background items
zIndex: 15, // Adjusted dropdown menu z-index to prevent overlap with background items
}),
},
classNames: prefersDark
? {
? undefined
: {
container: () => styles.container,
control: () => styles.control,
input: () => styles.input,
menu: () => styles.menu,
option: () => styles.option,
indicatorSeparator: () => styles.indicatorSeparator,
Expand All @@ -240,8 +242,7 @@ export const TagsInput = forwardRef<StateManagedSelect, TagsInputProps>(
multiValue: () => styles.multiValue,
multiValueLabel: () => styles.multiValueLabel,
multiValueRemove: () => styles.multiValueRemove,
}
: undefined,
},
...reactSelectOptions,
} as SelectProps

Expand Down

0 comments on commit e684d41

Please sign in to comment.