Skip to content

Commit

Permalink
Fix TabList classNameOverride usage (#4414)
Browse files Browse the repository at this point in the history
  • Loading branch information
dougmacknz authored Dec 18, 2023
1 parent 423c469 commit 9a18c2c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/silly-snails-drive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@kaizen/components": patch
---

TabList now uses classNameOverride correctly
7 changes: 6 additions & 1 deletion packages/components/src/Tabs/subcomponents/TabList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,17 @@ export const TabList = (props: TabListProps): JSX.Element => {
"aria-label": ariaLabel,
noPadding = false,
children,
classNameOverride,
...restProps
} = props
return (
<ReachTabList
aria-label={ariaLabel}
className={classnames(styles.tabList, noPadding && styles.noPadding)}
className={classnames(
styles.tabList,
classNameOverride,
noPadding && styles.noPadding
)}
{...restProps}
>
{children}
Expand Down

0 comments on commit 9a18c2c

Please sign in to comment.