Skip to content

Commit

Permalink
fix(VBanner): remove background when using the outlined prop
Browse files Browse the repository at this point in the history
fixes #12081
  • Loading branch information
johnleider committed Nov 29, 2021
1 parent d921c9d commit 2af9a41
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions packages/vuetify/src/components/VBanner/VBanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,17 +148,23 @@ export default mixins(
},

render (h): VNode {
const data = {
staticClass: 'v-banner',
attrs: this.attrs$,
class: this.classes,
style: this.styles,
directives: [{
name: 'show',
value: this.isActive,
}],
}

return h(VExpandTransition, [
h('div', this.setBackgroundColor(this.color, {
staticClass: 'v-banner',
attrs: this.attrs$,
class: this.classes,
style: this.styles,
directives: [{
name: 'show',
value: this.isActive,
}],
}), [this.genWrapper()]),
h(
'div',
this.outlined ? data : this.setBackgroundColor(this.color, data),
[this.genWrapper()],
),
])
},
})

0 comments on commit 2af9a41

Please sign in to comment.