mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 17:31:25 +08:00
26 lines
627 B
TypeScript
26 lines
627 B
TypeScript
|
import type { GenerateStyle } from '../../_util/theme';
|
||
|
import type { DropdownToken } from '.';
|
||
|
|
||
|
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;
|