Skip to content

Commit 3db8f34

Browse files
authored
Fix <SearchableSelect> shadows (#476)
1 parent 3941d4e commit 3db8f34

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

packages/core/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@viamrobotics/prime-core",
3-
"version": "0.0.84",
3+
"version": "0.0.85",
44
"publishConfig": {
55
"access": "public"
66
},

packages/core/src/lib/context-menu/context-menu-separator.svelte

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!--
22
@component
3-
3+
44
A horizontal line divider within a context menu.
55
```svelte
66
<ContextMenuSeparator />
@@ -16,4 +16,4 @@ let extraClasses: cx.Argument = '';
1616
export { extraClasses as cx };
1717
</script>
1818

19-
<hr class={cx('mb-0.5 mt-1 border-light drop-shadow-none', extraClasses)} />
19+
<hr class={cx('mb-0.5 mt-1 border-light shadow-none', extraClasses)} />

packages/core/src/lib/select/searchable-select.svelte

+2-2
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ const handleKeydown = createHandleKey({
218218
id={LIST_ID}
219219
role="listbox"
220220
class:hidden={!isExpanded}
221-
class="max-h-36 flex-col overflow-y-auto border border-gray-9 bg-white py-1 drop-shadow-md"
221+
class="max-h-36 flex-col overflow-y-auto border border-gray-9 bg-white py-1 shadow-sm"
222222
>
223223
{#each allOptions as { option, highlight } (option)}
224224
{@const isSelected = activeOption?.option === option}
@@ -242,7 +242,7 @@ const handleKeydown = createHandleKey({
242242
? [otherOptionPrefix, option].filter(Boolean).join(' ')
243243
: option}
244244
class={cx(
245-
'flex h-7.5 w-full cursor-pointer items-center justify-start px-2.5 text-xs',
245+
'flex h-7.5 w-full cursor-pointer items-center justify-start px-2.5 text-xs',
246246
isSelected ? 'bg-light' : 'hover:bg-light'
247247
)}
248248
on:pointerdown|preventDefault

packages/core/src/lib/select/select-menu.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export { extraClasses as cx };
1717

1818
<div
1919
class={cx(
20-
'absolute left-0 right-0 top-full z-max mt-1 w-full overflow-hidden border border-gray-9 bg-white drop-shadow-md',
20+
'absolute inset-x-0 top-full z-max mt-1 w-full overflow-hidden border border-gray-9 bg-white shadow-md',
2121
{
2222
invisible: !open,
2323
},

0 commit comments

Comments
 (0)