Skip to content

Commit

Permalink
fix(VSnackbar): apply theme classes
Browse files Browse the repository at this point in the history
  • Loading branch information
KaelWD committed Dec 19, 2022
1 parent 9005732 commit 3aaaa15
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/vuetify/src/components/VSnackbar/VSnackbar.tsx
Expand Up @@ -10,6 +10,7 @@ import { genOverlays, makeVariantProps, useVariant } from '@/composables/variant
import { makeLocationProps, useLocation } from '@/composables/location'
import { makePositionProps, usePosition } from '@/composables/position'
import { makeRoundedProps, useRounded } from '@/composables/rounded'
import { makeThemeProps, provideTheme } from "@/composables/theme"
import { useProxiedModel } from '@/composables/proxiedModel'
import { useScopeId } from '@/composables/scopeId'
import { forwardRefs } from '@/composables/forwardRefs'
Expand Down Expand Up @@ -43,6 +44,7 @@ export const VSnackbar = genericComponent<new () => {
...makePositionProps(),
...makeRoundedProps(),
...makeVariantProps(),
...makeThemeProps(),
...omit(makeVOverlayProps({
transition: 'v-snackbar-transition',
}), ['persistent', 'noClickAnimation', 'scrim', 'scrollStrategy']),
Expand All @@ -57,7 +59,7 @@ export const VSnackbar = genericComponent<new () => {
const { locationStyles } = useLocation(props)
const { positionClasses } = usePosition(props)
const { scopeId } = useScopeId()

const { themeClasses } = provideTheme(props)
const { colorClasses, colorStyles, variantClasses } = useVariant(props)
const { roundedClasses } = useRounded(props)

Expand Down Expand Up @@ -116,6 +118,7 @@ export const VSnackbar = genericComponent<new () => {
<div
class={[
'v-snackbar__wrapper',
themeClasses.value,
colorClasses.value,
roundedClasses.value,
variantClasses.value,
Expand Down

0 comments on commit 3aaaa15

Please sign in to comment.