UNPKG

@atlaskit/button

Version:

A button triggers an event or action. They let users know what will happen next.

26 lines (24 loc) 841 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getIconStyle = getIconStyle; var _react = require("@emotion/react"); // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766 function getIconStyle(_ref) { var spacing = _ref.spacing; return (0, _react.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' }); }