Skip to content

Commit aceeaa1

Browse files
committed
refactor(CDropdown): update dark variant
1 parent 4a9f210 commit aceeaa1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/coreui-vue/src/components/dropdown/CDropdownMenu.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,11 @@ const CDropdownMenu = defineComponent({
2626
h(
2727
props.component,
2828
{
29-
class: [
30-
'dropdown-menu',
31-
{ 'dropdown-menu-dark': dark, show: visible.value },
32-
getAlignmentClassNames(alignment),
33-
],
29+
class: ['dropdown-menu', { show: visible.value }, getAlignmentClassNames(alignment)],
3430
...((typeof alignment === 'object' || !popper) && {
3531
'data-coreui-popper': 'static',
3632
}),
33+
...(dark && { 'data-coreui-theme': 'dark' }),
3734
ref: dropdownMenuRef,
3835
},
3936
props.component === 'ul'

0 commit comments

Comments
 (0)