Skip to content

Commit 454c6c2

Browse files
Gallery caption icon and heading
1 parent a40b0e6 commit 454c6c2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

dotcom-rendering/src/components/Caption.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,19 @@ const captionLink = css`
210210
}
211211
`;
212212

213+
const galleryCaptionHeadingReset = css`
214+
h2 {
215+
display: inline;
216+
font-weight: bold;
217+
}
218+
h2::after {
219+
content: '';
220+
display: block;
221+
}
222+
`;
223+
213224
const galleryStyles = css`
225+
${galleryCaptionHeadingReset}
214226
${grid.column.centre};
215227
${textSans14};
216228

0 commit comments

Comments
 (0)