mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-09 14:44:51 +03:00
fix: rtl support
change direction of sideMenu icons. center sideMenu icon in phone size.
This commit is contained in:
parent
574d4032c1
commit
26d38e180d
|
@ -24,6 +24,7 @@ export const SearchInput = styled.input.attrs(() => ({
|
||||||
color: ${props => props.theme.menu.textColor};
|
color: ${props => props.theme.menu.textColor};
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
outline: none;
|
outline: none;
|
||||||
|
text-align: ${({ theme }) => (theme.typography.direction === 'rtl') ? 'center' : 'inherit'};
|
||||||
`;
|
`;
|
||||||
|
|
||||||
export const SearchIcon = styled((props: { className?: string }) => (
|
export const SearchIcon = styled((props: { className?: string }) => (
|
||||||
|
|
|
@ -144,6 +144,7 @@ export const MenuItemLabel = styled.label.attrs((props: MenuItemLabelType) => ({
|
||||||
}
|
}
|
||||||
|
|
||||||
${ShelfIcon} {
|
${ShelfIcon} {
|
||||||
|
transform: ${({ theme }) => (theme.typography.direction === 'rtl') ? 'rotate(0deg)' : 'none'};
|
||||||
height: ${({ theme }) => theme.menu.arrow.size};
|
height: ${({ theme }) => theme.menu.arrow.size};
|
||||||
width: ${({ theme }) => theme.menu.arrow.size};
|
width: ${({ theme }) => theme.menu.arrow.size};
|
||||||
polygon {
|
polygon {
|
||||||
|
|
|
@ -62,5 +62,6 @@ const ChevronContainer = styled.div`
|
||||||
align-self: center;
|
align-self: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
direction: ltr;
|
||||||
color: ${props => props.theme.colors.primary.main};
|
color: ${props => props.theme.colors.primary.main};
|
||||||
`;
|
`;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user