WIP: dark mode
This commit is contained in:
@@ -60,14 +60,14 @@ export default function MeldungenView() {
|
||||
/>
|
||||
<button
|
||||
onClick={() => dispatch(getMessagesThunk({ fromDate, toDate }))}
|
||||
className="bg-littwin-blue text-white px-4 py-2 rounded h-fit"
|
||||
className="btn-primary px-4 py-2 h-fit"
|
||||
>
|
||||
Anzeigen
|
||||
</button>
|
||||
|
||||
<Listbox value={sourceFilter} onChange={setSourceFilter}>
|
||||
<div className="relative ml-6 w-64">
|
||||
<Listbox.Button className="bg-white text-gray-900 w-full border px-4 py-2 rounded text-left flex justify-between items-center dark:bg-gray-900 dark:text-gray-100">
|
||||
<Listbox.Button className="bg-[var(--color-surface)] text-[var(--color-fg)] w-full border border-base px-4 py-2 rounded text-left flex justify-between items-center">
|
||||
<span>{sourceFilter}</span>
|
||||
<svg
|
||||
className="w-5 h-5 text-gray-400"
|
||||
@@ -83,19 +83,19 @@ export default function MeldungenView() {
|
||||
/>
|
||||
</svg>
|
||||
</Listbox.Button>
|
||||
<Listbox.Options className="bg-white absolute z-50 mt-1 w-full border rounded dark:bg-gray-900">
|
||||
<Listbox.Options className="bg-[var(--color-surface)] absolute z-50 mt-1 w-full border border-base rounded shadow-sm">
|
||||
{sources.map((src) => (
|
||||
<Listbox.Option
|
||||
key={src}
|
||||
value={src}
|
||||
className={({ selected, active, disabled }) =>
|
||||
`px-4 py-2 cursor-pointer text-gray-900 dark:text-gray-100 ${
|
||||
selected
|
||||
? "bg-littwin-blue text-white"
|
||||
`px-4 py-2 cursor-pointer text-[var(--color-fg)] transition-colors ${
|
||||
disabled
|
||||
? "opacity-50 text-[var(--color-muted)] cursor-not-allowed"
|
||||
: selected
|
||||
? "bg-accent text-white"
|
||||
: active
|
||||
? "bg-blue-100 dark:bg-gray-700 dark:text-white"
|
||||
: disabled
|
||||
? "opacity-50 text-gray-400 dark:text-gray-500 cursor-not-allowed"
|
||||
? "bg-[var(--color-surface-alt)]"
|
||||
: ""
|
||||
}`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user