mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-11 19:42:54 +08:00
fix: Dropdown should not display when items is empty array (#47375)
* fix: Dropdown should not display when items is empty array * Apply suggestions from code review Signed-off-by: afc163 <afc163@gmail.com> --------- Signed-off-by: afc163 <afc163@gmail.com>
This commit is contained in:
parent
8a76266dd0
commit
3d1c81db92
@ -194,6 +194,11 @@ const genBaseStyle: GenerateStyle<DropdownToken> = (token) => {
|
|||||||
boxShadow: token.boxShadowSecondary,
|
boxShadow: token.boxShadowSecondary,
|
||||||
...genFocusStyle(token),
|
...genFocusStyle(token),
|
||||||
|
|
||||||
|
'&:empty': {
|
||||||
|
padding: 0,
|
||||||
|
boxShadow: 'none',
|
||||||
|
},
|
||||||
|
|
||||||
[`${menuCls}-item-group-title`]: {
|
[`${menuCls}-item-group-title`]: {
|
||||||
padding: `${unit(paddingBlock!)} ${unit(controlPaddingHorizontal)}`,
|
padding: `${unit(paddingBlock!)} ${unit(controlPaddingHorizontal)}`,
|
||||||
color: token.colorTextDescription,
|
color: token.colorTextDescription,
|
||||||
|
Loading…
Reference in New Issue
Block a user