Skip to content

Commit

Permalink
fix: remove box-shadow from color picker
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Trost <[email protected]>
  • Loading branch information
galexrt committed Oct 7, 2024
1 parent 32185dd commit 5a465bf
Show file tree
Hide file tree
Showing 2 changed files with 203 additions and 185 deletions.
20 changes: 19 additions & 1 deletion app/components/partials/ColorPicker.client.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ const breakpoints = useBreakpoints(breakpointsTailwind);
const smallerBreakpoint = breakpoints.smaller('sm');
const colorMode = useColorMode();
const theme = computed(() => (colorMode.value === 'dark' ? 'dark' : 'white'));
const open = ref(false);
</script>

Expand Down Expand Up @@ -71,6 +74,7 @@ const open = ref(false);
picker-type="chrome"
disable-alpha
disable-history
:theme="theme"
/>
</div>
</div>
Expand Down Expand Up @@ -99,7 +103,15 @@ const open = ref(false);
/>

<template #panel>
<ColorPicker v-model:pure-color="color" is-widget format="hex" picker-type="chrome" disable-alpha disable-history />
<ColorPicker
v-model:pure-color="color"
is-widget
format="hex"
picker-type="chrome"
disable-alpha
disable-history
:theme="theme"
/>
</template>
</UPopover>
</template>
Expand All @@ -108,4 +120,10 @@ const open = ref(false);
.vc-input-toggle {
display: none !important;
}
@media not all and screen(sm) {
.vc-colorpicker {
box-shadow: none !important;
}
}
</style>
Loading

0 comments on commit 5a465bf

Please sign in to comment.