mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-07 13:44:54 +03:00
Remove drop down arrow absolute positioning
Drop down arrow is already centered automatically within inline-flex container.
This commit is contained in:
parent
dffd0ed5f8
commit
c35c8b5f54
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user