Skip to content

Commit

Permalink
gap inside menu body
Browse files Browse the repository at this point in the history
  • Loading branch information
rachelbt committed Mar 7, 2024
1 parent 7399f5e commit 9e31d51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 0 additions & 6 deletions libs/components/src/lib/menu-item/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,15 @@
<vwc-menu-item connotation="cta" text="menu item" icon="image-line"></vwc-menu-item>
<vwc-menu-item role="menuitemcheckbox" connotation="cta" text="menu item" icon="image-line"></vwc-menu-item>
<vwc-menu-item role="menuitemradio" connotation="cta" text="menu item" icon="image-line"></vwc-menu-item>
<vwc-divider></vwc-divider>
<vwc-menu-item connotation="cta" text="menu item" text-secondary="secondary text"></vwc-menu-item>
<vwc-menu-item role="menuitemcheckbox" connotation="cta" text="menu item" text-secondary="secondary text"></vwc-menu-item>
<vwc-menu-item role="menuitemcheckbox" checked connotation="cta" text="menu item" text-secondary="secondary text"></vwc-menu-item>
<vwc-menu-item role="menuitemradio" connotation="cta" text="menu item" text-secondary="secondary text"></vwc-menu-item>
<vwc-menu-item role="menuitemradio" checked connotation="cta" text="menu item" text-secondary="secondary text"></vwc-menu-item>
<vwc-divider></vwc-divider>
<vwc-menu-item check-appearance="tick-only" checked role="menuitemcheckbox" connotation="cta" text="menu item" text-secondary="secondary text"></vwc-menu-item>
<vwc-menu-item role="menuitemcheckbox" checked connotation="cta" text="menu item" text-secondary="secondary text"></vwc-menu-item>
<vwc-menu-item check-appearance="tick-only" checked role="menuitemradio" connotation="cta" text="menu item" text-secondary="secondary text"></vwc-menu-item>
<vwc-menu-item role="menuitemradio" checked connotation="cta" text="menu item" text-secondary="secondary text"></vwc-menu-item>
<vwc-divider></vwc-divider>
<vwc-menu-item text="Menu item 1" connotation="cta">
<vwc-menu slot="submenu" ><vwc-menu-item text="Menu item 1.1"></vwc-menu-item>
</vwc-menu-item>
Expand All @@ -36,18 +33,15 @@
<vwc-menu-item text="menu item" icon="image-line"></vwc-menu-item>
<vwc-menu-item role="menuitemcheckbox" text="menu item" icon="image-line"></vwc-menu-item>
<vwc-menu-item role="menuitemradio" text="menu item" icon="image-line"></vwc-menu-item>
<vwc-divider></vwc-divider>
<vwc-menu-item text="menu item" text-secondary="secondary text"></vwc-menu-item>
<vwc-menu-item role="menuitemcheckbox" text="menu item" text-secondary="secondary text"></vwc-menu-item>
<vwc-menu-item role="menuitemcheckbox" checked text="menu item" text-secondary="secondary text"></vwc-menu-item>
<vwc-menu-item role="menuitemradio" text="menu item" text-secondary="secondary text"></vwc-menu-item>
<vwc-menu-item role="menuitemradio" checked text="menu item" text-secondary="secondary text"></vwc-menu-item>
<vwc-divider></vwc-divider>
<vwc-menu-item check-appearance="tick-only" checked role="menuitemcheckbox" text="menu item" text-secondary="secondary text"></vwc-menu-item>
<vwc-menu-item role="menuitemcheckbox" checked text="menu item" text-secondary="secondary text"></vwc-menu-item>
<vwc-menu-item check-appearance="tick-only" checked role="menuitemradio" text="menu item" text-secondary="secondary text"></vwc-menu-item>
<vwc-menu-item role="menuitemradio" checked text="menu item" text-secondary="secondary text"></vwc-menu-item>
<vwc-divider></vwc-divider>
<vwc-menu-item text="Menu item 1">
<vwc-menu slot="submenu" ><vwc-menu-item text="Menu item 1.1"></vwc-menu-item>
</vwc-menu-item>
Expand Down
4 changes: 4 additions & 0 deletions libs/components/src/lib/menu/menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@
}

.body {
display: flex;
flex-direction: column;
row-gap: 1px;

.hide-body & {
display: none;
}
Expand Down

0 comments on commit 9e31d51

Please sign in to comment.