Skip to content

Commit

Permalink
Merge branch 'bose/2671' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
BorghildSelle committed Dec 30, 2024
2 parents 76b812e + 6a38ee2 commit 4e38386
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions web/core/Accordion/Content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ export const Content = forwardRef<HTMLDivElement, AccordionContentProps>(functio
{ variant = 'primary', children, className = '', ...rest },
ref,
) {
const isMobile = useMediaQuery(`(max-width: 800px)`)
const isMobile = useMediaQuery(`(max-width: 1300px)`)

const commonSlideUpDown = `overflow-hidden motion-safe:data-closed:animate-slideDown motion-safe:data-open:animate-slideUp`

const variantClassName: Partial<Record<Variants, string>> = {
primary: `${commonSlideUpDown}`,
menu: `max-lg:overflow-hidden
max-lg:motion-safe:data-closed:animate-slideDown
max-lg:motion-safe:data-open:animate-slideUp
menu: `max-xl:overflow-hidden
max-xl:motion-safe:data-closed:animate-slideDown
max-xl:motion-safe:data-open:animate-slideUp
`,
simpleMenu: `max-lg:overflow-hidden
max-lg:motion-safe:data-closed:animate-slideDown
max-lg:motion-safe:data-open:animate-slideUp`,
simpleMenu: `max-xl:overflow-hidden
max-xl:motion-safe:data-closed:animate-slideDown
max-xl:motion-safe:data-open:animate-slideUp`,
}

const getVariantBody = () => {
Expand Down

0 comments on commit 4e38386

Please sign in to comment.