Skip to content

Commit

Permalink
fix(VToolbar): provide default VBtn variant
Browse files Browse the repository at this point in the history
fixes #16239
partially reverts ceaffe5
  • Loading branch information
KaelWD committed Dec 11, 2022
1 parent f0ed956 commit 41111a7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/vuetify/src/components/VToolbar/VToolbar.tsx
Expand Up @@ -13,6 +13,7 @@ import { makeElevationProps, useElevation } from '@/composables/elevation'
import { makeRoundedProps, useRounded } from '@/composables/rounded'
import { makeTagProps } from '@/composables/tag'
import { makeThemeProps, provideTheme } from '@/composables/theme'
import { provideDefaults } from '@/composables/defaults'
import { useBackgroundColor } from '@/composables/color'

// Utilities
Expand Down Expand Up @@ -97,6 +98,12 @@ export const VToolbar = genericComponent<new () => {
: 0
)

provideDefaults({
VBtn: {
variant: 'text',
},
})

useRender(() => {
const hasTitle = !!(props.title || slots.title)
const hasImage = !!(slots.image || props.image)
Expand Down

0 comments on commit 41111a7

Please sign in to comment.