From 7f3614997ee67deeb4dfa8980ea77919847c6268 Mon Sep 17 00:00:00 2001 From: neverland Date: Sat, 16 Oct 2021 19:57:33 +0800 Subject: [PATCH] feat(DropdownMenu): add --dropdown-menu-box-shadow css var (#4565) --- packages/common/style/var.less | 1 + packages/dropdown-menu/index.less | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/common/style/var.less b/packages/common/style/var.less index c66eb8f8..9cdd57c2 100644 --- a/packages/common/style/var.less +++ b/packages/common/style/var.less @@ -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; diff --git a/packages/dropdown-menu/index.less b/packages/dropdown-menu/index.less index 5f18e1fb..e91e40d9 100644 --- a/packages/dropdown-menu/index.less +++ b/packages/dropdown-menu/index.less @@ -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(