UNPKG

@orchestrator-ui/orchestrator-ui-components

Version:

Library of UI Components used to display the workflow orchestrator frontend

30 lines (24 loc) 659 B
import { css } from '@emotion/react'; import { WfoTheme } from '@/hooks'; export const COPY_ICON_CLASS = 'copyIcon'; export const getStyles = ({ theme }: WfoTheme) => { const uuidFieldStyle = css({ fontWeight: theme.font.weight.medium, display: 'flex', gap: theme.size.xs, [`&:focus-visible .${COPY_ICON_CLASS}`]: { visibility: 'visible', }, [`&:hover .${COPY_ICON_CLASS}`]: { visibility: 'visible', }, }); const clickable = css({ cursor: 'pointer', visibility: 'hidden', }); return { clickable, uuidFieldStyle, }; };