Skip to content

Commit 617dd33

Browse files
committed
fix: displayName should always be primary in ParameterLabel component
1 parent be40dc8 commit 617dd33

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

site/src/components/Markdown/Markdown.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,11 @@ const useStyles = makeStyles((theme) => ({
116116
},
117117

118118
"& p": {
119+
marginTop: 0,
120+
marginBottom: 0,
121+
},
122+
123+
"& p + *": {
119124
marginTop: 0,
120125
marginBottom: theme.spacing(2),
121126
},

site/src/components/RichParameterInput/RichParameterInput.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ const ParameterLabel: FC<ParameterLabelProps> = ({ id, parameter }) => {
4343

4444
{hasDescription ? (
4545
<Stack spacing={0}>
46-
<span className={styles.labelCaption}>{displayName}</span>
47-
<MemoizedMarkdown className={styles.labelPrimary}>
46+
<span className={styles.labelPrimary}>{displayName}</span>
47+
<MemoizedMarkdown className={styles.labelCaption}>
4848
{parameter.description}
4949
</MemoizedMarkdown>
5050
</Stack>

0 commit comments

Comments
 (0)