@zendeskgarden/react-dropdowns
Version:
Components related to dropdowns in the Garden Design System
25 lines (22 loc) • 838 B
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 from 'styled-components';
import { hideVisually } from 'polished';
import { getColor, componentStyles } from '@zendeskgarden/react-theming';
import { Tag } from '@zendeskgarden/react-tags';
const COMPONENT_ID = 'dropdowns.combobox.tag';
const StyledTag = styled(Tag).attrs({
'data-garden-id': COMPONENT_ID,
'data-garden-version': '9.5.4'
}).withConfig({
displayName: "StyledTag",
componentId: "sc-1alam0r-0"
})(["&[aria-disabled='true']{color:", ";}&[hidden]{display:revert;", "}", ";"], props => props.hue ? undefined : getColor({
theme: props.theme,
variable: 'foreground.disabled'
}), hideVisually(), componentStyles);
export { StyledTag };