mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-23 00:15:05 +01:00
fix(NavigationMenu): highlightColor defaults to color prop
This commit is contained in:
@@ -85,7 +85,7 @@ const ui = computed(() => tv({ extend: navigationMenu, slots: props.ui })({
|
||||
color: props.color,
|
||||
variant: props.variant,
|
||||
highlight: props.highlight,
|
||||
highlightColor: props.highlightColor
|
||||
highlightColor: props.highlightColor || props.color
|
||||
}))
|
||||
|
||||
const lists = computed(() => props.items?.length ? (Array.isArray(props.items[0]) ? props.items : [props.items]) as T[][] : [])
|
||||
|
||||
@@ -58,7 +58,6 @@ export default (config: { colors: string[] }) => ({
|
||||
linkLeadingIcon: 'text-gray-700 dark:text-gray-200',
|
||||
childLink: 'bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white',
|
||||
childLinkIcon: 'text-gray-700 dark:text-gray-200'
|
||||
|
||||
},
|
||||
false: {
|
||||
link: 'text-gray-500 dark:text-gray-400',
|
||||
@@ -168,7 +167,6 @@ export default (config: { colors: string[] }) => ({
|
||||
}],
|
||||
defaultVariants: {
|
||||
color: 'primary',
|
||||
highlightColor: 'primary',
|
||||
variant: 'pill'
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user