Skip to content

Commit

Permalink
Remove camelcase
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Tideman committed Sep 24, 2024
1 parent 6750e11 commit d267c52
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/lines-and-dots/event-type-filter.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
<Menu
id="event-type-menu"
keepOpen
position="topRight"
position="top-right"
class="w-[240px] md:w-[400px]"
>
<MenuItem
Expand Down
10 changes: 5 additions & 5 deletions src/lib/holocene/menu/menu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
interface $$Props extends HTMLAttributes<HTMLUListElement> {
id: string;
keepOpen?: boolean;
position?: 'left' | 'right' | 'topLeft' | 'topRight';
position?: 'left' | 'right' | 'top-light' | 'top-right';
menuElement?: HTMLUListElement;
}
Expand All @@ -21,7 +21,7 @@
export { className as class };
export let id: string;
export let keepOpen = false;
export let position: 'left' | 'right' | 'topLeft' | 'topRight' = 'left';
export let position: 'left' | 'right' | 'top-left' | 'top-right' = 'left';
export let menuElement: HTMLUListElement = null;
const {
Expand All @@ -48,7 +48,7 @@
class:hidden={!$open}
aria-labelledby={id}
tabindex={-1}
style={position === 'topRight' || position === 'topLeft'
style={position === 'top-right' || position === 'top-left'
? `top: -${height + 16}px;`
: ''}
{id}
Expand All @@ -66,12 +66,12 @@
@apply surface-primary absolute z-20 mt-1 min-w-fit list-none overflow-auto rounded-lg border-2 border-subtle text-primary shadow;
&.left,
&.topLeft {
&.top-left {
@apply left-0 origin-top-left;
}
&.right,
&.topRight {
&.top-right {
@apply right-0 origin-top-right;
}
}
Expand Down

0 comments on commit d267c52

Please sign in to comment.