actionButton.tsx 547 B

12345678910111213141516171819202122232425262728
  1. // eslint-disable-next-line no-restricted-imports
  2. import styled from '@emotion/styled';
  3. import {Button} from 'sentry/components/button';
  4. export const ActionButton = styled(Button)<{isActive?: boolean}>`
  5. color: ${p => (p.isActive ? p.theme.linkColor : p.theme.subText)};
  6. width: 18px;
  7. height: 18px;
  8. padding: 2px;
  9. min-height: auto;
  10. &,
  11. &:hover,
  12. &:focus {
  13. background: transparent;
  14. }
  15. &:hover {
  16. color: ${p => p.theme.gray400};
  17. }
  18. `;
  19. ActionButton.defaultProps = {
  20. type: 'button',
  21. borderless: true,
  22. size: 'zero',
  23. };