Skip to content

Commit

Permalink
Merge pull request #16 from ckoegel/DX-3083
Browse files Browse the repository at this point in the history
DX-3083 Fix Dropdown Arrows and Expand Default
  • Loading branch information
ckoegel authored Jan 5, 2023
2 parents 75453a4 + db1944e commit 93c795b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/common-elements/fields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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};
}
Expand Down
2 changes: 1 addition & 1 deletion src/services/RedocNormalizedOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const defaultTheme: ThemeInterface = {
nestingSpacing: '1em',
nestedBackground: '#fafafa',
arrow: {
size: '1.1em',
size: '1.3em',
color: theme => theme.colors.text.secondary,
},
},
Expand Down

0 comments on commit 93c795b

Please sign in to comment.