Skip to content
This repository has been archived by the owner on Mar 3, 2022. It is now read-only.

Tweak Caption Styles #287

Merged
merged 3 commits into from
Jun 28, 2021
Merged

Tweak Caption Styles #287

merged 3 commits into from
Jun 28, 2021

Conversation

JamieB-gu
Copy link
Contributor

Why?

Applying some tweaks to the image caption styles requested by @benwuersching.

Note: Ben, one thing you requested was a 6px spacing between the caption text and the bottom of the image. However the design system only allows for spacings that are multiples of 4px, so I've kept it at 8px for now. If you think this is problematic maybe we should have a chat with Akemi about the rules for spacing?

Note 2: The text colour you requested for dark mode was #999. Interestingly the only instance of that colour for text in the design system is brandAltText.supporting, as seen here. I've used that, but it's a weird name for a default theme dark mode colour. We're probably going to have to think about integrating an official dark mode palette into the design system at some point 🤔.

Changes

  • Adjust line height to 'regular' (1.35)
  • Reduce font size to 12px
  • Change font colour in dark mode

- Adjust line height to 'regular' (1.35)
- Reduce font size to 12px
- Change font colour in dark mode
@JamieB-gu JamieB-gu requested a review from faresite June 24, 2021 15:40
@benwuersching
Copy link

benwuersching commented Jun 24, 2021

@JamieB-gu A top margin of 6px just looks exactly right for the captions. If we can't have, it use 8px, as you did. Let's discuss with Akemi.
#999999 shouldn't be such a rare colour. It's simply neutral.60 (as shown here). We use it a lot in dark mode.

@JamieB-gu JamieB-gu merged commit 7c0facb into main Jun 28, 2021
@JamieB-gu JamieB-gu deleted the tweak-caption-styles branch June 28, 2021 16:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants