Skip to content

Commit 0c20e64

Browse files
Hollister009RomanHotsiy
authored andcommitted
fix: changed several components style font-family to monospace (#1063)
fixes #909
1 parent b5af71d commit 0c20e64

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/common-elements/dropdown.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const StyledDropdown = styled(Dropdown)`
2121
font-family: ${props => props.theme.typography.headings.fontFamily};
2222
2323
.Dropdown-control {
24-
font-family: ${props => props.theme.typography.headings.fontFamily};
24+
font-family: ${props => props.theme.typography.code.fontFamily};
2525
position: relative;
2626
font-size: 0.929em;
2727
width: 100%;

src/common-elements/fields-layout.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const PropertyNameCell = styled(PropertyCell)`
6363
line-height: 20px;
6464
white-space: nowrap;
6565
font-size: 0.929em;
66-
font-family: ${props => props.theme.typography.headings.fontFamily};
66+
font-family: ${props => props.theme.typography.code.fontFamily};
6767
6868
&.deprecated {
6969
${deprecatedCss};

src/common-elements/fields.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ export const ExampleValue = styled(FieldLabel)`
7272
padding: 0 ${theme.spacing.unit}px;
7373
border: 1px solid ${transparentize(0.9, theme.colors.text.primary)};
7474
font-family: ${theme.typography.code.fontFamily};
75-
color: ${theme.typography.code.color};
7675
}`};
7776
& + & {
7877
margin-left: 0;
@@ -91,6 +90,7 @@ export const ConstraintItem = styled(FieldLabel)`
9190
margin: 0 ${theme.spacing.unit}px;
9291
padding: 0 ${theme.spacing.unit}px;
9392
border: 1px solid ${transparentize(0.9, theme.colors.primary.main)};
93+
font-family: ${theme.typography.code.fontFamily};
9494
}`};
9595
& + & {
9696
margin-left: 0;

0 commit comments

Comments
 (0)