Skip to content

Commit

Permalink
Fix asyncapi#961: Restore focus outline on buttons for accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Souvik9205 committed Jul 2, 2024
1 parent 571a94a commit 08dafba
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 5 deletions.
6 changes: 1 addition & 5 deletions library/src/components/CollapseButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,7 @@ export const CollapseButton: React.FunctionComponent<Props> = ({
children,
...rest
}) => (
<button
{...rest}
className={`focus:outline-none ${rest.className}`}
type="button"
>
<button {...rest} className={`focus:outline ${rest.className}`} type="button">
<div className="inline-block">{children}</div>
<HiChevronRight
{...chevronProps}
Expand Down
24 changes: 24 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,8 @@
"prettier": "^3.2.5",
"tslib": "^1.10.0",
"typescript": "^5.3.3"
},
"dependencies": {
"@asyncapi/react-component": "^2.0.4"
}
}

0 comments on commit 08dafba

Please sign in to comment.