Skip to content

Commit

Permalink
feat: don't show outline unless focused by keyboard
Browse files Browse the repository at this point in the history
  • Loading branch information
vacekj committed Nov 25, 2024
1 parent 29ceb15 commit 00fd43f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/dull-dolphins-sell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@penumbra-zone/ui': minor
---

Only display tab outline when focused via keyboard, not otherwise.
2 changes: 1 addition & 1 deletion packages/ui/src/Tabs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export const Tabs = ({ value, onChange, options, actionType = 'default' }: TabsP
value === option.value ? 'text-text-primary' : 'text-text-secondary',
getDensityItemClasses(density),
getFocusOutlineColorByActionType(actionType),
'focus:outline focus:outline-2',
'focus-visible:outline focus-visible:outline-2',
'hover:bg-action-hoverOverlay',
)}
>
Expand Down

0 comments on commit 00fd43f

Please sign in to comment.