-
Notifications
You must be signed in to change notification settings - Fork 843
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
[EuiPagination] Hide of
text on small screens
#4661
[EuiPagination] Hide of
text on small screens
#4661
Conversation
Preview documentation changes for this PR: https://eui.elastic.co/pr_4661/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
}} | ||
/> | ||
</EuiText> | ||
<EuiHideFor sizes={['xs', 's']}> |
There was a problem hiding this comment.
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 ❤️
Preview documentation changes for this PR: https://eui.elastic.co/pr_4661/ |
There was a problem hiding this 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.
Co-authored-by: Caroline Horn <[email protected]>
…miukimiu/eui into pagination-hide-when-compressed
Preview documentation changes for this PR: https://eui.elastic.co/pr_4661/ |
jenkins test this |
Preview documentation changes for this PR: https://eui.elastic.co/pr_4661/ |
Summary
This PR fixes #4654. The
of
text was showing on small screens for compressed EuiPagination. Now, this text is hidden inxs
ands
screens.I also fixed a center aligning issue in WebKit browsers. As we can see in the first image the
of
was not center aligned.Checklist
[ ] 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