@atlaskit/button
Version:
A button triggers an event or action. They let users know what will happen next.
16 lines • 566 B
JavaScript
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
import { css } from '@emotion/react';
export function getContentStyle(_ref) {
var spacing = _ref.spacing;
return css({
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
margin: spacing === 'none' ? 0 : '0 2px',
// content can grow and shrink
flexGrow: 1,
flexShrink: 1,
// ellipsis for overflow text
overflow: 'hidden',
textOverflow: 'ellipsis',
whiteSpace: 'nowrap'
});
}