Skip to content

Commit

Permalink
fix(VTabs): width when using fixed prop and border-radius
Browse files Browse the repository at this point in the history
fixes #17027
  • Loading branch information
johnleider committed Sep 12, 2023
1 parent 251b5c6 commit 127bb0a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/vuetify/src/components/VTabs/VTab.sass
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// override v-btn size specificity
&.v-tab
--v-btn-height: var(--v-tabs-height)
border-radius: $tab-border-radius
min-width: $tab-min-width

.v-slide-group--horizontal &
Expand Down
5 changes: 2 additions & 3 deletions packages/vuetify/src/components/VTabs/VTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,10 @@ export const VTab = genericComponent()({
role="tab"
aria-selected={ String(isSelected.value) }
active={ false }
block={ props.fixed }
maxWidth={ props.fixed ? 300 : undefined }
rounded={ 0 }
{ ...btnProps }
{ ...attrs }
block={ props.fixed }
maxWidth={ props.fixed ? 300 : undefined }
onGroup:selected={ updateSlider }
>
{ slots.default?.() ?? props.text }
Expand Down
1 change: 1 addition & 0 deletions packages/vuetify/src/components/VTabs/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ $tabs-stacked-height: 72px !default;

// VTab
$tab-align-tabs-title-margin: 42px !default;
$tab-border-radius: 0 !default;
$tab-max-width: 360px !default;
$tab-min-width: 90px !default;
$tab-slider-size: 2px !default;

0 comments on commit 127bb0a

Please sign in to comment.