operationUnit.js 663 B

1234567891011121314151617181920212223
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.operationUnit = void 0;
  6. // eslint-disable-next-line import/prefer-default-export
  7. const operationUnit = token => ({
  8. // FIXME: This use link but is a operation unit. Seems should be a colorPrimary.
  9. // And Typography use this to generate link style which should not do this.
  10. color: token.colorLink,
  11. textDecoration: 'none',
  12. outline: 'none',
  13. cursor: 'pointer',
  14. transition: `color ${token.motionDurationSlow}`,
  15. '&:focus, &:hover': {
  16. color: token.colorLinkHover
  17. },
  18. '&:active': {
  19. color: token.colorLinkActive
  20. }
  21. });
  22. exports.operationUnit = operationUnit;