fix(NavigationMenu): disable collapsible with collapsed prop

This commit is contained in:
Benjamin Canac
2025-01-30 14:19:13 +01:00
parent 6c20f8a9ea
commit 07e1b4f1f4
5 changed files with 101 additions and 5 deletions

View File

@@ -88,6 +88,7 @@ describe('NavigationMenu', () => {
['with labelKey', { props: { ...props, labelKey: 'icon' } }],
['with arrow', { props: { ...props, arrow: true, modelValue: '0' } }],
['with orientation vertical', { props: { ...props, orientation: 'vertical' as const, modelValue: '0' } }],
['with orientation vertical and collapsed', { props: { ...props, orientation: 'vertical' as const, modelValue: '0', collapsed: true } }],
['with content orientation vertical', { props: { ...props, contentOrientation: 'vertical' as const, modelValue: '0' } }],
...variants.map((variant: string) => [`with primary variant ${variant}`, { props: { ...props, variant } }]),
...variants.map((variant: string) => [`with neutral variant ${variant}`, { props: { ...props, variant, color: 'neutral' } }]),