mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 20:19:44 +08:00
de2992f96f
* chore: base move * chore: all path * chore: fix script
26 lines
621 B
TypeScript
26 lines
621 B
TypeScript
import type { DropdownToken } from '.';
|
|
import type { GenerateStyle } from '../../theme';
|
|
|
|
const genStatusStyle: GenerateStyle<DropdownToken> = token => {
|
|
const { componentCls, menuCls, colorError, colorTextLightSolid } = token;
|
|
|
|
const itemCls = `${menuCls}-item`;
|
|
|
|
return {
|
|
[`${componentCls}, ${componentCls}-menu-submenu`]: {
|
|
[`${menuCls} ${itemCls}`]: {
|
|
[`&${itemCls}-danger`]: {
|
|
color: colorError,
|
|
|
|
'&:hover': {
|
|
color: colorTextLightSolid,
|
|
backgroundColor: colorError,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|
|
};
|
|
|
|
export default genStatusStyle;
|