antd
Version:
An enterprise-class UI design language and React components implementation
18 lines (16 loc) • 706 B
JavaScript
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
var genStatusStyle = function genStatusStyle(token) {
var componentCls = token.componentCls,
menuCls = token.menuCls,
colorError = token.colorError,
colorTextLightSolid = token.colorTextLightSolid;
var itemCls = "".concat(menuCls, "-item");
return _defineProperty({}, "".concat(componentCls, ", ").concat(componentCls, "-menu-submenu"), _defineProperty({}, "".concat(menuCls, " ").concat(itemCls), _defineProperty({}, "&".concat(itemCls, "-danger"), {
color: colorError,
'&:hover': {
color: colorTextLightSolid,
backgroundColor: colorError
}
})));
};
export default genStatusStyle;