mirror of
https://github.com/Redocly/redoc.git
synced 2025-04-22 09:42:00 +03:00
DX-3083 Fix Dropdown Arrows and Expand Default
This commit is contained in:
parent
3d410b6002
commit
db1944ec10
|
@ -42,6 +42,7 @@ export const ClickablePropertyNameCell = styled(PropertyNameCell)`
|
|||
${ShelfIcon} {
|
||||
height: ${({ theme }) => theme.schema.arrow.size};
|
||||
width: ${({ theme }) => theme.schema.arrow.size};
|
||||
margin-top: -2px;
|
||||
polygon {
|
||||
fill: ${({ theme }) => theme.schema.arrow.color};
|
||||
}
|
||||
|
|
|
@ -78,7 +78,7 @@ function argValueToNumber(value: number | string | undefined): number | undefine
|
|||
}
|
||||
}
|
||||
|
||||
function argValueToExpandLevel(value?: number | string | undefined, defaultValue = 0): number {
|
||||
function argValueToExpandLevel(value?: number | string | undefined, defaultValue = 1): number {
|
||||
if (value === 'all') return Infinity;
|
||||
|
||||
return argValueToNumber(value) || defaultValue;
|
||||
|
|
|
@ -97,7 +97,7 @@ const defaultTheme: ThemeInterface = {
|
|||
nestingSpacing: '1em',
|
||||
nestedBackground: '#fafafa',
|
||||
arrow: {
|
||||
size: '1.1em',
|
||||
size: '1.3em',
|
||||
color: theme => theme.colors.text.secondary,
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user