UNPKG

@atlaskit/renderer

Version:
34 lines (33 loc) 1.09 kB
import _extends from "@babel/runtime/helpers/extends"; /** * @jsxRuntime classic * @jsx jsx */ /** * Emotion branch of the `platform_editor_static_css` experiment. * Used via `componentWithCondition` in `link.tsx`. * * Cleanup: delete this file once the experiment has shipped. */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- intentional: emotion fallback for compiled migration; `jsx` is used as the JSX pragma (see @jsx jsx above) so must be a value import import { css, jsx } from '@emotion/react'; import LinkUrl from '@atlaskit/smart-card/link-url'; var anchorStyles = css({ color: "var(--ds-link, #1868DB)", '&:hover': { color: "var(--ds-link, #1868DB)", textDecoration: 'underline' }, '&:active': { color: "var(--ds-link-pressed, #1558BC)" } }); export var LinkUrlEmotion = function LinkUrlEmotion(props) { return ( // Ignored via go/ees005 // eslint-disable-next-line react/jsx-props-no-spreading jsx(LinkUrl, _extends({ css: anchorStyles }, props)) ); };