Skip to content

Commit

Permalink
fix(VListSubheader): background color with fixed subheader
Browse files Browse the repository at this point in the history
  • Loading branch information
johnleider committed Jun 11, 2021
1 parent ea0aecc commit b431222
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
5 changes: 4 additions & 1 deletion packages/vuetify/src/components/VList/VList.sass
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,19 @@
$root: &

align-items: center
background: inherit
display: flex
font-size: $list-subheader-font-size
font-weight: $list-subheader-font-weight
line-height: $list-subheader-line-height
opacity: $list-subheader-opacity
padding-inline-end: $list-subheader-padding-end
padding-inline-start: $list-subheader-padding-start
min-height: $list-subheader-min-height
transition: $list-subheader-transition

&__text
opacity: $list-subheader-opacity

@at-root
@include density('v-list', $list-density) using ($modifier)
#{$root}
Expand Down
9 changes: 7 additions & 2 deletions packages/vuetify/src/components/VList/VListSubheader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,13 @@ export default defineComponent({
textColorClasses.value,
]}
style={{ textColorStyles }}
v-slots={ slots }
/>
>
{ slots.default && (
<div class="v-list-subheader__text">
{ slots.default() }
</div>
) }
</props.tag>
)
},
})

0 comments on commit b431222

Please sign in to comment.