Skip to content

Commit

Permalink
SELF-287 update Menu.vue to include menu class with mb-2 if footer sl…
Browse files Browse the repository at this point in the history
…ot is present (#491)

* update Menu.vue to include menu class with mb-2 if footer slot is present

* 2.0.50
  • Loading branch information
kencrim authored May 3, 2024
1 parent 2c498fd commit 5d7d8cb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# CHANGELOG

## v2.0.48
## v2.0.50

- Adjust the margin on the menu's divider if the menu has a footer.

## v2.0.49

- Add disabled styles for the items of the `Menu` component.

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lob/ui-components",
"version": "2.0.49",
"version": "2.0.50",
"engines": {
"node": ">=20.2.0",
"npm": ">=10.2.0"
Expand Down
3 changes: 2 additions & 1 deletion src/components/Menu/Menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
enterActiveClass: 'transition duration-250 ease-out',
leaveActiveClass: 'transition duration-250 ease-out',
leaveToClass: 'opacity-0 scale-[.98]'
}
},
menu: { class: [{ 'mb-2': Boolean($slots.footer) }] }
}"
>
<template #submenuheader="item">
Expand Down

0 comments on commit 5d7d8cb

Please sign in to comment.