Skip to content

Commit

Permalink
refactor(ui): update focus-visible ring styles in ResizableHandle for…
Browse files Browse the repository at this point in the history
… improved accessibility
  • Loading branch information
tszhong0411 committed Jan 15, 2025
1 parent f37d344 commit 663c5df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tidy-tools-camp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@tszhong0411/ui': patch
---

Update focus-visible ring styles in ResizableHandle for improved accessibility
2 changes: 1 addition & 1 deletion packages/ui/src/resizable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const ResizableHandle = (props: ResizableHandleProps) => {
className={cn(
'bg-border relative flex w-px items-center justify-center',
'data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0',
'focus-visible:ring-ring focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-offset-1',
'focus-visible:ring-ring focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2',
'after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2',
'[&[data-panel-group-direction=vertical]>div]:rotate-90',
className
Expand Down

0 comments on commit 663c5df

Please sign in to comment.