Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Amsterdam] Tighten title line-heights #4133

Merged
merged 4 commits into from
Oct 15, 2020

Conversation

hbharding
Copy link
Contributor

Summary

Changes the following EUI Title line heights:
l was 48px, now 40px
m was 40px, now 32px
xxxs was 24px, now 16px

Note: These line heights do not apply to the medium EuiText scale. i.e. h1 still uses a 48px line height. @cchaos mentioned that @miukimiu might be making changes to our euiTextScale mixin for something related to our markdown editor.

The following screenshot shows these changes (blue dot indicates the titles that changed)
image

Checklist

  • [ ] Check against all themes for compatibility in both light and dark modes
  • Checked in mobile
  • [ ] Checked in Chrome, Safari, Edge, and Firefox
  • [ ] Props have proper autodocs
  • [ ] Added documentation
  • [ ] Checked Code Sandbox works for the any docs examples
  • [ ] Added or updated jest tests
  • [ ] Checked for breaking changes and labeled appropriately
  • [ ] Checked for accessibility including keyboard-only and screenreader modes
  • A changelog entry exists and is marked appropriately

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_4133/

Copy link
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Though Chrome is still doing something funky with the evaluation of REM unit line-heights and rounding. For example the H1 evaluates to the correct line-height pixel value, but not the rendered height:

image

And the ~32px line-heights are .0001 px off but rounding down...
image

But without completely changing how we calculate line-heights, I don't see anything we can do about that right now. Hopefully @miukimiu might be able to sort it out for us when she tackles the mixin.

@cchaos cchaos changed the title Amst/tighten title lineheight [Amsterdam] Tighten title line-heights Oct 15, 2020
@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_4133/

@cchaos cchaos merged commit cfd1dcc into elastic:master Oct 15, 2020
kshitij86 added a commit to kshitij86/eui that referenced this pull request Nov 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants