Skip to content

Commit

Permalink
feat(dropdown): add spacing support
Browse files Browse the repository at this point in the history
  • Loading branch information
megheaiulian committed Dec 17, 2021
1 parent c72f0c6 commit 0d4c1db
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/cosmoz-dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,17 @@ const preventDefault = e => e.preventDefault(),
left: -9999999999px;
min-width: 72px;
box-sizing: border-box;
padding: var(--cosmoz-dropdown-spacing, 0px)
}
.content {
background: var(--cosmoz-dropdown-bg-color, #fff);
box-shadow: var(--cosmoz-dropdown-box-shadow, 0px 3px 4px 2px rgba(0, 0, 0, 0.1));
}
::slotted(*) {
display: block;
}
</style>
<slot></slot>`;
<div class="content"><slot></slot></div>`;
},
Dropdown = host => {
const { placement } = host,
Expand Down

0 comments on commit 0d4c1db

Please # to comment.