Skip to content

Commit

Permalink
fix: picklist styles when enabledSearch and isLoading is passed
Browse files Browse the repository at this point in the history
fix: #1624
  • Loading branch information
rgah2107 committed Jun 22, 2020
1 parent 7b9d144 commit 86d5117
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/InternalDropdown/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ const InternalDropdown = forwardRef((props, reference) => {
ref={containerRef}
>
<RenderIf isTrue={enableSearch}>
<SearchContainer>
<SearchContainer isLoading={isLoading}>
<Icon />
<InputSearch onChange={handleSearch} ref={searchRef} type="search" />
</SearchContainer>
Expand Down
6 changes: 6 additions & 0 deletions src/components/InternalDropdown/styled/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ export const SearchContainer = attachThemeAttrs(styled.div)`
display: flex;
align-items: center;
border-bottom: 1px solid ${props => props.palette.border.divider};
${props =>
props.isLoading &&
`
margin-bottom: 1rem;
`}
`;

export const Icon = styled(SearchIcon)`
Expand Down

0 comments on commit 86d5117

Please sign in to comment.