Skip to content

Commit

Permalink
Fixes the collapseButton focus.
Browse files Browse the repository at this point in the history
  • Loading branch information
ItshMoh committed Sep 27, 2024
1 parent 268e0fa commit 3aed16d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/src/components/CollapseButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const CollapseButton: React.FunctionComponent<Props> = ({
}) => (
<button
{...rest}
className={`focus:outline-none ${rest.className}`}
className={`focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 ${rest.className ?? ''}`}
type="button"
>
<div className="inline-block">{children}</div>
Expand All @@ -45,3 +45,4 @@ export const CollapseButton: React.FunctionComponent<Props> = ({
/>
</button>
);

0 comments on commit 3aed16d

Please sign in to comment.