Remove drop down arrow absolute positioning

Drop down arrow is already centered automatically within inline-flex container.
This commit is contained in:
Volodymyr Kelembet 2021-01-26 11:01:48 +02:00
parent dffd0ed5f8
commit c35c8b5f54

View File

@ -43,9 +43,7 @@ export const StyledDropdown = styled(Dropdown)`
display: inline-flex;
padding: 0;
height: auto;
padding-right: 20px;
position: relative;
margin-bottom: 5px;
}
.dropdown-selector-value {
font-family: ${(props) => props.theme.typography.headings.fontFamily};
@ -59,14 +57,12 @@ export const StyledDropdown = styled(Dropdown)`
transition: color 0.25s ease, text-shadow 0.25s ease;
}
.dropdown-arrow {
position: absolute;
right: 3px;
top: 50%;
transform: translateY(-50%);
position: static;
border-color: ${(props) => props.theme.colors.primary.main} transparent transparent;
border-style: solid;
border-width: 0.35em 0.35em 0;
width: 0;
height: 0;
svg {
display: none;
}