Skip to content

Commit

Permalink
feat(tabs): update default styling enclosed
Browse files Browse the repository at this point in the history
  • Loading branch information
psychedelicious committed May 17, 2024
1 parent 66e7799 commit 8d0a37a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/components/tabs/tabs.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const meta: Meta<typeof Tabs> = {
component: Tabs,
args: {
colorScheme: 'base',
variant: 'collapse',
variant: 'enclosed',
},
};

Expand Down
22 changes: 21 additions & 1 deletion lib/theme/components/tabs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,34 @@ const collapse = definePartsStyle(() => ({
},
}));

const enclosed = definePartsStyle(() => ({
tab: {
fontWeight: 'semibold',
fontSize: 'sm',
color: 'base.300',
_hover: {
color: 'base.100',
},
_selected: {
borderColor: 'base.800',
borderBottomColor: 'base.900',
color: 'invokeBlue.300',
_hover: {
color: 'invokeBlue.100',
},
},
},
}));

export const tabsTheme = defineMultiStyleConfig({
variants: {
line,
appTabs,
collapse,
enclosed,
},
defaultProps: {
variant: 'line',
variant: 'enclosed',
colorScheme: 'blue',
},
});

0 comments on commit 8d0a37a

Please sign in to comment.