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

[EuiTabs] Add large size #4501

Merged
merged 4 commits into from
Feb 10, 2021
Merged

[EuiTabs] Add large size #4501

merged 4 commits into from
Feb 10, 2021

Conversation

cchaos
Copy link
Contributor

@cchaos cchaos commented Feb 8, 2021

Mainly affects the Amsterdam theme

This PR is to align the styles of EuiTabs with the latest from the Amsterdam design assets. The main problem we had was that the smaller (14px) font size affected both the medium and small sizes of tabs. This is actually good for maintaining font size consistency, but we had needs for a larger set as well. One that bumped the font size back up to 16px.

What the results are is that:

Tab size Default theme Amsterdam theme
s 14px 14px
m 16px 14px
l 16px 16px

This might seem weird on the surface that only medium (default) tab font sizes are different across themes, but this is intentional. And this affects both the default and condensed displays.

Default theme
Screen Shot 2021-02-08 at 15 54 44 PM

Amsterdam theme
Screen Shot 2021-02-08 at 15 54 36 PM

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 and playground toggles
  • 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_4501/

Copy link
Contributor

@chandlerprall chandlerprall left a comment

Choose a reason for hiding this comment

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

Code/docs/tests changes LGTM, probably want to wait for a designer review too.

@cchaos cchaos requested a review from elizabetdev February 9, 2021 20:21
@cchaos
Copy link
Contributor Author

cchaos commented Feb 9, 2021

Jenkins, test this

@kibanamachine
Copy link

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

Copy link
Contributor

@elizabetdev elizabetdev left a comment

Choose a reason for hiding this comment

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

LGTM! 🎉

Tested in Chrome, Safari, Edge, and Firefox. Also tested the playground.

@kibanamachine
Copy link

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

@cchaos cchaos merged commit b4947c4 into elastic:master Feb 10, 2021
@cchaos cchaos deleted the props/tabs branch February 10, 2021 18:42
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.

4 participants