mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-04 00:49:39 +08:00
b4730281a9
* chore: init * chore: dropdown style * chore: more style * chore: icon style * chore: more style * chore: diff shows the cache path * chore: motion support * chore: more style * feat: status * chore: sub menu style * chore: all dropdown style * fix: ts * chore: update snapshot * Update components/dropdown/style/index.tsx Co-authored-by: MadCcc <1075746765@qq.com> * chore: update style Co-authored-by: MadCcc <1075746765@qq.com>
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;
|