Skip to content

[EuiPagination] Hide of text on small screens#4661

Merged
elizabetdev merged 9 commits intoelastic:masterfrom
elizabetdev:pagination-hide-when-compressed
Mar 30, 2021
Merged

[EuiPagination] Hide of text on small screens#4661
elizabetdev merged 9 commits intoelastic:masterfrom
elizabetdev:pagination-hide-when-compressed

Conversation

@elizabetdev
Copy link
Contributor

@elizabetdev elizabetdev commented Mar 23, 2021

Summary

This PR fixes #4654. The of text was showing on small screens for compressed EuiPagination. Now, this text is hidden in xs and s screens.

Frame 2@2x

I also fixed a center aligning issue in WebKit browsers. As we can see in the first image the of was not center aligned.

Frame 1@2x

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

@elizabetdev elizabetdev requested a review from cchaos March 23, 2021 17:41
@kibanamachine
Copy link

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

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.

Can you check the alignments out in the default theme too? It looks like they get wonky again:
Screen Shot 2021-03-26 at 14 48 02 PM

And maybe there's a way to get the of text to be the same size as the button text in both themes? I"m thinking that maybe the x-small empty buttons for the numbers are just too small and could just be s.

Screen Shot 2021-03-26 at 14 47 48 PM

}}
/>
</EuiText>
<EuiHideFor sizes={['xs', 's']}>
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice! This may even open it up for consumers to be able to customize these breakpoint sizes ❤️

@kibanamachine
Copy link

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

@elizabetdev elizabetdev requested a review from cchaos March 29, 2021 15:45
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.

👍 I like the larger numbers since it also increases those hit areas. LGTM!

I just had one more simple suggestions for alignment of the ellipsis.

elizabetdev and others added 3 commits March 30, 2021 11:12
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
@kibanamachine
Copy link

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

@elizabetdev
Copy link
Contributor Author

jenkins test this

@kibanamachine
Copy link

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

@elizabetdev elizabetdev merged commit a04b2e7 into elastic:master Mar 30, 2021
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.

[EuiPagination] Hide 'of' when compressed

3 participants