Skip to content

Commit 512cafa

Browse files
authored
Merge pull request #14566 from guardian/gallery-caption-icon
Inline gallery main media caption icon and embolden title
2 parents 4ad5c1c + 454c6c2 commit 512cafa

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)