@atlaskit/button
Version:
A button triggers an event or action. They let users know what will happen next.
19 lines • 716 B
JavaScript
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
import { css } from '@emotion/react';
export function getIconStyle(_ref) {
var spacing = _ref.spacing;
return css({
display: 'flex',
// icon size cannot grow and shrink
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
margin: spacing === 'none' ? 0 : "0 2px",
flexGrow: 0,
flexShrink: 0,
alignSelf: 'center',
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
fontSize: 0,
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
lineHeight: 0,
userSelect: 'none'
});
}