Skip to content

Commit

Permalink
fix(Tabs): same behaviour between pill and link variants
Browse files Browse the repository at this point in the history
Resolves #2338
  • Loading branch information
benjamincanac committed Oct 28, 2024
1 parent 2514abe commit e592da2
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 49 deletions.
6 changes: 3 additions & 3 deletions src/theme/tabs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default (options: Required<ModuleOptions>) => ({
variant: {
pill: {
list: 'bg-[var(--ui-bg-elevated)] rounded-[calc(var(--ui-radius)*2)]',
trigger: 'flex-1',
trigger: 'flex-1 w-full',
indicator: 'rounded-[calc(var(--ui-radius)*1.5)] shadow-sm'
},
link: {
Expand Down Expand Up @@ -78,7 +78,7 @@ export default (options: Required<ModuleOptions>) => ({
orientation: 'horizontal',
variant: 'link',
class: {
list: 'border-b',
list: 'border-b -mb-px',
indicator: '-bottom-px h-px'
}
}, {
Expand All @@ -92,7 +92,7 @@ export default (options: Required<ModuleOptions>) => ({
orientation: 'vertical',
variant: 'link',
class: {
list: 'border-l',
list: 'border-l -ml-px',
indicator: '-left-px w-px'
}
}, ...(options.theme.colors || []).map((color: string) => ({
Expand Down
Loading

0 comments on commit e592da2

Please sign in to comment.