Skip to content

Commit fd34526

Browse files
chore: fixes the accessibility issue related to 'focus' (#1050)
* Fixes the collapseButton focus. * fixed the lint issue --------- Co-authored-by: Cody's Dad <40604284+AceTheCreator@users.noreply.github.com>
1 parent 1f33954 commit fd34526

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/components/CollapseButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const CollapseButton: React.FunctionComponent<Props> = ({
3333
}) => (
3434
<button
3535
{...rest}
36-
className={`focus:outline-none ${rest.className}`}
36+
className={`focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 ${rest.className ?? ''}`}
3737
type="button"
3838
>
3939
<div className="inline-block">{children}</div>

0 commit comments

Comments
 (0)