Skip to content

Commit aa0879c

Browse files
authored
feat: update pattern styling (#2196) (#2600)
Closes #2196
1 parent c3fce4e commit aa0879c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/common-elements/fields.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,11 @@ export const RecursiveLabel = styled(FieldLabel)`
9797

9898
export const PatternLabel = styled(FieldLabel)`
9999
color: #0e7c86;
100+
font-family: ${props => props.theme.typography.code.fontFamily};
101+
font-size: 12px;
100102
&::before,
101103
&::after {
102-
font-weight: bold;
104+
content: ' ';
103105
}
104106
`;
105107

src/components/__tests__/__snapshots__/FieldDetails.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ exports[`FieldDetailsComponent renders correctly when field items have string ty
163163
>
164164
[
165165
<span
166-
class="sc-kpDqfm sc-eDPEul cGRfjn erJHow"
166+
class="sc-kpDqfm sc-eDPEul cGRfjn cCKYVD"
167167
>
168168
^see regex[0-9]$
169169
</span>

0 commit comments

Comments
 (0)