Skip to content

Commit

Permalink
feat(VList): add nav prop support
Browse files Browse the repository at this point in the history
  • Loading branch information
johnleider committed Jun 10, 2021
1 parent 619f00e commit 55fbdcb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/vuetify/src/components/VList/VList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export default defineComponent({
type: String,
default: 'one',
},
nav: Boolean,
...makeBorderProps(),
...makeDensityProps(),
...makeDimensionProps(),
Expand All @@ -53,6 +54,7 @@ export default defineComponent({
'v-list',
{
'v-list--disabled': props.disabled,
'v-list--nav': props.nav,
[`v-list--${props.lines}-line`]: true,
},
themeClasses.value,
Expand Down
6 changes: 6 additions & 0 deletions packages/vuetify/src/components/VList/VListItem.sass
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@

@include typography($list-item-subtitle-typography...)

.v-list--nav &
@include typography($list-item-nav-subtitle-typography...)

.v-list-item-title
hyphens: $list-item-title-hyphens
overflow-wrap: $list-item-title-overflow-wrap
Expand All @@ -97,6 +100,9 @@

@include typography($list-item-title-typography...)

.v-list--nav &
@include typography($list-item-nav-title-typography...)

.v-list-item
$root: &

Expand Down

0 comments on commit 55fbdcb

Please sign in to comment.