Skip to content

Commit

Permalink
Merge pull request #772 from DTS-STN/ken/collapse-border
Browse files Browse the repository at this point in the history
Add border on collapse component even when 'slim'
  • Loading branch information
ken-blanchard authored Nov 18, 2024
2 parents 544de49 + 31fb62a commit e22a6d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Collapse.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useId } from 'react'

const variants = {
slim: 'text-base',
default: 'rounded border',
default: '',
}
export interface CollapseProps {
title: string
Expand All @@ -15,7 +15,7 @@ const Collapse = ({ title, children, variant = 'default' }: CollapseProps) => {
return (
<details
aria-describedby={`${id}-details-summary`}
className={`mb-3 max-w-prose p-3 ${variants[variant]}`}
className={`mb-3 max-w-prose rounded border p-3 ${variants[variant]}`}
>
<summary
id={`${id}-details-summary`}
Expand Down

0 comments on commit e22a6d8

Please sign in to comment.