-
Notifications
You must be signed in to change notification settings - Fork 834
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
Fixes: #2851 : unnecessary pagination #2905
Conversation
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
💚 CLA has been signed |
jenkins test this |
Preview documentation changes for this PR: https://eui.elastic.co/pr_2905/ |
Given #2851 is a bug in the Canvas app and not EUI, this change is only a stylistic one in nature, difference can be see in the docs' first Adding @cchaos as reviewer. Existinghttps://elastic.github.io/eui/#/tabular-content/tables Updatedhttps://eui.elastic.co/pr_2905/#/tabular-content/tables This PR also introduces a bug when no data is provided, which throws |
We had actually talked about this functionality recently and extensively in a different PR #2598 and had made the decision that the pagination controls should still show even if there is only 1 page of results. This means keeping in the arrow buttons, though they would be disabled. Keeping the arrows (though disabled) indicates to the user what the number Since it was found that #2851 was actually a bug in a consuming application, it should have actually been closed. I would opt for not changing the current functionality. Though we definitely appreciate your work on this @anishagg17 , I don't think there is actually a problem to solve here and as @chandlerprall mentioned, this also introduces a bug/error to be thrown. |
@cchaos I think we should get rid of this |
@anishagg17 Can you explain further? |
I mean that these icons shouldn't render if there is only a single page |
That is our mobile version of the pagination bar (simply removes the numbers). There's a lot of speculation with how we can make this experience better, however, I don't think just removing them is the right answer. Again, this was discussed in the PR #2598, and we've decided that our current UI display is how we want to handle these situations. We appreciate your time and feedback on this issue, but I will be closing the issue as we feel we already have the experience we want. |
Summary
Improved
EuiPagination
so that it does not appear unnecessarilyFixes: #2851
Checklist