Skip to content

Commit

Permalink
chore: minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
morewings committed Jun 9, 2024
1 parent c3b075b commit e5a29ad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion src/lib/Card/Card.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
justify-content: center;

&:not(:only-child, :last-child) {
border-right: var(--fg-border-width-200) solid var(--fg-background-100);
border-right: var(--fg-border-width-100) solid var(--fg-background-100);
}

&:not(:only-child) {
Expand Down
5 changes: 0 additions & 5 deletions src/lib/Menu/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {forwardRef, Fragment} from 'react';
import classNames from 'classnames';
import {useFloating, autoUpdate, size, offset, autoPlacement} from '@floating-ui/react-dom';
import {useRootTheme, useLocalTheme} from 'css-vars-hook';
import type {Placement} from '@floating-ui/react-dom';

import type {DataAttributes, LibraryProps} from '@/internal/LibraryAPI';
import {Portal} from '@/internal/Portal';
Expand Down Expand Up @@ -40,8 +39,6 @@ export type Props = DataAttributes &
alignWidth?: boolean;
/** Set design of Menu */
variant?: keyof typeof Variants;
/** Define recommended placement for Tooltip content, applied when possible */
placement?: Placement;
};

export const Menu = forwardRef<HTMLDivElement, Props>(
Expand All @@ -56,7 +53,6 @@ export const Menu = forwardRef<HTMLDivElement, Props>(
trapFocus = true,
alignWidth = true,
variant = Variants.plain,
placement: placementProp = 'bottom',
...nativeProps
},
ref
Expand All @@ -71,7 +67,6 @@ export const Menu = forwardRef<HTMLDivElement, Props>(
const {refs, floatingStyles} = useFloating<HTMLDivElement>({
strategy: 'fixed',
whileElementsMounted: autoUpdate,
placement: placementProp,
middleware: [
alignWidth &&
size({
Expand Down

0 comments on commit e5a29ad

Please sign in to comment.