antd
Version:
An enterprise-class UI design language and React components implementation
16 lines • 519 B
JavaScript
// eslint-disable-next-line import/prefer-default-export
export const operationUnit = token => ({
// 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
}
});