DX-3083 Fix Dropdown Arrows and Expand Default

This commit is contained in:
Cameron Koegel 2023-01-05 10:12:30 -05:00
parent 3d410b6002
commit db1944ec10
3 changed files with 3 additions and 2 deletions

View File

@ -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};
}

View File

@ -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;

View File

@ -97,7 +97,7 @@ const defaultTheme: ThemeInterface = {
nestingSpacing: '1em',
nestedBackground: '#fafafa',
arrow: {
size: '1.1em',
size: '1.3em',
color: theme => theme.colors.text.secondary,
},
},