Skip to content

Commit

Permalink
fix(menu): prevent td styles to apply globally
Browse files Browse the repository at this point in the history
  • Loading branch information
m0ksem committed Dec 8, 2023
1 parent e034193 commit 2d01969
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/ui/src/components/va-menu-list/VaMenuList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ export default defineComponent({
line-height: unset;
}
td:not(&__virtual-td) {
// Without & at the start, style will be applied globally
& td:not(&__virtual-td) {
padding-top: calc(var(--va-menu-padding-y) / 2);
padding-bottom: calc(var(--va-menu-padding-y) / 2);
}
Expand Down

0 comments on commit 2d01969

Please sign in to comment.