Skip to content

Commit

Permalink
[sparkle] Take focus in modal over close button (#8772)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdraier authored Nov 21, 2024
1 parent 18fd03a commit 0eea1c4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions sparkle/package-lock.json

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

2 changes: 1 addition & 1 deletion sparkle/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dust-tt/sparkle",
"version": "0.2.318",
"version": "0.2.319",
"scripts": {
"build": "rm -rf dist && npm run tailwind && npm run build:esm && npm run build:cjs",
"tailwind": "tailwindcss -i ./src/styles/tailwind.css -o dist/sparkle.css",
Expand Down
4 changes: 3 additions & 1 deletion sparkle/src/components/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,10 @@ export function Modal({
}
/>
<div
tabIndex={1}
autoFocus
className={classNames(
"s-pb-6 s-pt-16",
"s-pb-6 s-pt-16 focus-visible:s-outline-none",
innerContainerClasses,
className ?? ""
)}
Expand Down

0 comments on commit 0eea1c4

Please sign in to comment.