Skip to content

Commit

Permalink
fix(VNavigationDrawer): add missing color support
Browse files Browse the repository at this point in the history
  • Loading branch information
johnleider committed Jun 15, 2021
1 parent e6e6b64 commit 0cedcf3
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { makeTagProps } from '@/composables/tag'
import { useDisplay } from '@/composables/display'
import { useProxiedModel } from '@/composables/proxiedModel'
import { makeThemeProps, useTheme } from '@/composables/theme'
import { useBackgroundColor } from '@/composables/color'

// Utilities
import { computed, defineComponent, onBeforeMount, ref, toRef, watch } from 'vue'
Expand All @@ -22,6 +23,7 @@ export default defineComponent({
name: 'VNavigationDrawer',

props: makeProps({
color: String,
disableResizeWatcher: Boolean,
expandOnHover: Boolean,
modelValue: {
Expand Down Expand Up @@ -56,6 +58,7 @@ export default defineComponent({
setup (props, { slots }) {
const { themeClasses } = useTheme(props)
const { borderClasses } = useBorder(props, 'v-navigation-drawer')
const { backgroundColorClasses, backgroundColorStyles } = useBackgroundColor(toRef(props, 'color'))
const { elevationClasses } = useElevation(props)
const { mobile } = useDisplay()
const { roundedClasses } = useRounded(props, 'v-navigation-drawer')
Expand Down Expand Up @@ -111,11 +114,13 @@ export default defineComponent({
'v-navigation-drawer--absolute': props.absolute,
},
themeClasses.value,
backgroundColorClasses.value,
borderClasses.value,
elevationClasses.value,
roundedClasses.value,
]}
style={[
backgroundColorStyles.value,
layoutStyles.value,
]}
>
Expand Down

0 comments on commit 0cedcf3

Please sign in to comment.