ant-design/components/_util/theme/util/operationUnit.tsx
二货机器人 b967f9eb81
refactor: More alias token (#34658)
* chore: rm disabled color

* chore: color heading

* chore: shows tokn

* chore: fix color mapping

* chore: status colors

* chore: durations

* chore: outline color

* chore: comment info

* chore: background color

* chore: merge nexr
2022-03-22 20:02:04 +08:00

20 lines
487 B
TypeScript

import type { CSSObject } from '@ant-design/cssinjs';
import { DerivativeToken } from '..';
// eslint-disable-next-line import/prefer-default-export
export const operationUnit = (token: DerivativeToken): CSSObject => ({
color: token.linkColor,
textDecoration: 'none',
outline: 'none',
cursor: 'pointer',
transition: `color ${token.motionDurationSlow}`,
'&:focus, &:hover': {
color: token.linkHoverColor,
},
'&:active': {
color: token.linkActiveColor,
},
});