mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-16 01:29:11 +08:00
502dac12aa
* docs: fix code * feat: lint * feat: prettier * feat: test * feat: review * feat: format html * feat: format html
23 lines
669 B
TypeScript
23 lines
669 B
TypeScript
import type { CSSObject } from '@ant-design/cssinjs';
|
|
|
|
import type { DerivativeToken } from '../theme/internal';
|
|
|
|
// 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,
|
|
},
|
|
});
|