Skip to content

Commit

Permalink
chore(Tabs): set ambiguous orientation (#2223)
Browse files Browse the repository at this point in the history
makes arrow keys work in any direction, always.
  • Loading branch information
Barsnes authored Aug 12, 2024
1 parent 795bbe1 commit 6445a77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/eighty-cougars-think.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@digdir/designsystemet-react": patch
---

Tabs: Make arrow keys work in any direction
1 change: 1 addition & 0 deletions packages/react/src/components/Tabs/TabList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export const TabList = forwardRef<
role='tablist'
activeValue={value}
className={cl('ds-tabs__tablist', className)}
orientation='ambiguous'
ref={ref}
{...rest}
>
Expand Down

0 comments on commit 6445a77

Please sign in to comment.