@zendeskgarden/react-dropdowns
Version:
Components related to dropdowns in the Garden Design System
34 lines (31 loc) • 1.05 kB
JavaScript
/**
* 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, { css } from 'styled-components';
import { componentStyles, getColor } from '@zendeskgarden/react-theming';
const COMPONENT_ID$i = 'dropdowns.combobox.separator';
const colorStyles$6 = ({
theme
}) => {
const backgroundColor = getColor({
theme,
variable: 'border.subtle'
});
return css(["background-color:", ";"], backgroundColor);
};
const sizeStyles$5 = props => {
const margin = `${props.theme.space.base}px`;
const height = props.theme.borderWidths.sm;
return css(["margin:", " 0;height:", ";"], margin, height);
};
const StyledListboxSeparator = styled.li.attrs({
'data-garden-id': COMPONENT_ID$i,
'data-garden-version': '9.12.6'
}).withConfig({
displayName: "StyledListboxSeparator",
componentId: "sc-1p6toh2-0"
})(["cursor:default;", ";", ";", ";"], sizeStyles$5, colorStyles$6, componentStyles);
export { StyledListboxSeparator };