Skip to content

Commit

Permalink
Merge pull request #55 from CropWatchDevelopment/history-translate
Browse files Browse the repository at this point in the history
changed color of multi-select items
  • Loading branch information
CropWatchDevelopment authored May 13, 2024
2 parents bb6516e + cfef88c commit 72e7584
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 4 deletions.
1 change: 0 additions & 1 deletion Crypto

This file was deleted.

25 changes: 24 additions & 1 deletion src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,29 @@
<script lang="ts">
import { SvelteToast } from '@zerodevx/svelte-toast';
import '../app.css';
import { settings } from 'svelte-ux';
settings({
components: {
Button: {
// same as <Button class="flex-2">
classes: 'flex-2',
// All component that wrap Button will also use this variant by default,
variant: 'outline'
},
Field: {
// All components based on Field will use this as well.
labelPlacement: 'top'
},
MultiSelect: {
classes: {
root: 'text-white'
}
}
}
});
</script>

<SvelteToast />
<slot />
<slot />
2 changes: 1 addition & 1 deletion src/routes/app/devices/[dev_eui]/history/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
<DateRangeField bind:value stepper rounded center />
</div>

<div class="grid lg:grid-flow-col grid-flow-rowgrid-cols-1 md:grid-cols-2 my-4 gap-2">
<div class="grid lg:grid-flow-col grid-flow-rowgrid-cols-1 md:grid-cols-2 my-4 gap-2 text-white">
<DarkCard2>
<MultiSelect
{options}
Expand Down
3 changes: 2 additions & 1 deletion themes.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"danger": "#ff8f8f",
"surface-100": "#FFFEF4",
"surface-200": "#F2F2F2",
"surface-300": "#E5E6E6"
"surface-300": "#E5E6E6",
"surface-content": "#A6ADBB"
}

}

0 comments on commit 72e7584

Please sign in to comment.