mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 09:21:22 +08:00
9aec72c395
* chore: remove useless tsx support * add * add * style * fix lint * fix lint * fix lint * update locale entry * update locale entry * update locale entry * delete useless style
26 lines
632 B
TypeScript
26 lines
632 B
TypeScript
import type { DropdownToken } from '.';
|
|
import type { GenerateStyle } from '../../theme/internal';
|
|
|
|
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;
|