mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-18 11:18:14 +08:00
863f61d908
Co-authored-by: afc163 <afc163@gmail.com>
22 lines
602 B
TypeScript
22 lines
602 B
TypeScript
import type { CSSObject } from '@ant-design/cssinjs';
|
|
|
|
import type { AliasToken } from '../theme/internal';
|
|
|
|
export const operationUnit = (token: AliasToken): 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,
|
|
},
|
|
});
|