mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 05:28:20 +08:00
cdbfe45df1
* test: fix lint * chore: code clean * doc: anchor color * chore: style order
22 lines
659 B
TypeScript
22 lines
659 B
TypeScript
import type { CSSObject } from '@ant-design/cssinjs';
|
|
import type { DerivativeToken } from '../theme';
|
|
|
|
// eslint-disable-next-line import/prefer-default-export
|
|
export const operationUnit = (token: DerivativeToken): CSSObject => ({
|
|
// FIXME: This use link but is a operation unit. Seems should be a colorPrimary.
|
|
// And Typography use this to generate link style which should not do this.
|
|
color: token.colorLink,
|
|
textDecoration: 'none',
|
|
outline: 'none',
|
|
cursor: 'pointer',
|
|
transition: `color ${token.motionDurationSlow}`,
|
|
|
|
'&:focus, &:hover': {
|
|
color: token.colorLinkHover,
|
|
},
|
|
|
|
'&:active': {
|
|
color: token.colorLinkActive,
|
|
},
|
|
});
|