feat(DropdownMenu): add --dropdown-menu-box-shadow css var (#4565)

This commit is contained in:
neverland 2021-10-16 19:57:33 +08:00 committed by GitHub
parent 7cbf287438
commit 7f3614997e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -648,6 +648,7 @@
@dropdown-menu-title-padding: 0 @padding-xs;
@dropdown-menu-title-line-height: 18px;
@dropdown-menu-option-active-color: @red;
@dropdown-menu-box-shadow: 0 2px 12px fade(@gray-7, 12);
// IndexAnchor
@index-anchor-padding: 0 @padding-md;

View File

@ -2,7 +2,7 @@
.van-dropdown-menu {
display: flex;
box-shadow: 0 2px 12px fade(@gray-7, 12);
box-shadow: var(--dropdown-menu-box-shadow, @dropdown-menu-box-shadow);
user-select: none;
height: var(--dropdown-menu-height, @dropdown-menu-height);
background-color: var(