DocSpace-buildtools/packages/asc-web-components/combobox/styled-combobox.js

28 lines
770 B
JavaScript
Raw Normal View History

import styled from "styled-components";
2021-02-25 21:19:45 +00:00
import Base from "../themes/base";
const StyledComboBox = styled.div`
width: ${(props) =>
(props.scaled && "100%") ||
(props.size === "base" && props.theme.comboBox.width.base) ||
(props.size === "middle" && props.theme.comboBox.width.middle) ||
(props.size === "big" && props.theme.comboBox.width.big) ||
(props.size === "huge" && props.theme.comboBox.width.huge) ||
(props.size === "content" && "fit-content")};
position: relative;
outline: 0;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
.dropdown-container {
padding: ${(props) =>
props.advancedOptions && props.theme.comboBox.padding};
}
`;
StyledComboBox.defaultProps = {
theme: Base,
};
export default StyledComboBox;