Skip to content

Commit 5b165d5

Browse files
authored
fix: make displayName primary in ParameterLabel component (#9158)
1 parent 71d5882 commit 5b165d5

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

site/src/components/Markdown/Markdown.tsx

+5
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,11 @@ const useStyles = makeStyles((theme) => ({
120120
marginBottom: theme.spacing(2),
121121
},
122122

123+
"& p:only-child": {
124+
marginTop: 0,
125+
marginBottom: 0,
126+
},
127+
123128
"& ul, & ol": {
124129
display: "flex",
125130
flexDirection: "column",

site/src/components/RichParameterInput/RichParameterInput.tsx

+2-2
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)