UNPKG

@zendeskgarden/react-modals

Version:

Components relating to modals in the Garden Design System

33 lines (30 loc) 1.07 kB
/** * Copyright Zendesk, Inc. * * Use of this source code is governed under the Apache License, Version 2.0 * found at http://www.apache.org/licenses/LICENSE-2.0. */ import styled from 'styled-components'; import { getColor, componentStyles, getLineHeight } from '@zendeskgarden/react-theming'; const COMPONENT_ID = 'modals.tooltip_dialog.title'; const sizeStyles = props => ` /* stylelint-disable-next-line property-no-unknown */ line-height: ${getLineHeight(props.theme.lineHeights.md, props.theme.fontSizes.md)}; font-size: ${props.theme.fontSizes.md}; `; const StyledTooltipDialogTitle = styled.div.attrs({ 'data-garden-id': COMPONENT_ID, 'data-garden-version': '9.12.1' }).withConfig({ displayName: "StyledTooltipDialogTitle", componentId: "sc-1rceixg-0" })(["margin:0;color:", ";font-weight:", ";", ";", ";"], _ref => { let { theme } = _ref; return getColor({ variable: 'foreground.default', theme }); }, props => props.theme.fontWeights.semibold, props => sizeStyles(props), componentStyles); export { StyledTooltipDialogTitle };