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

TablePaginator only shows ellipses when needed #2303

Merged
merged 7 commits into from
Oct 16, 2024

Conversation

r100-stack
Copy link
Member

@r100-stack r100-stack commented Oct 14, 2024

Changes

Shows ellipses only when there is a gap of one or more page in between the extremities and the middle pages.

Testing

  • Added e2e test
  • Manually confirmed that the ellipses are shown only when there is at least one page in between:
Before After Explanation
image image "…" between 1 & 2
image image "…" between 100 & 101

Docs

Added changeset

After PR TODOs:

  • Try to replace all && with ternary expressions. Also update the style guide and try adding a lint rule. (#2303 (comment)).

@r100-stack r100-stack self-assigned this Oct 14, 2024
@r100-stack r100-stack changed the base branch from main to r/table-paginator-arrow-keys-bug October 14, 2024 23:25
Base automatically changed from r/table-paginator-arrow-keys-bug to main October 15, 2024 15:05
@r100-stack r100-stack marked this pull request as ready for review October 15, 2024 19:13
@r100-stack r100-stack requested a review from a team as a code owner October 15, 2024 19:13
@r100-stack r100-stack requested review from mayank99 and smmr-dn and removed request for a team October 15, 2024 19:13
@r100-stack r100-stack enabled auto-merge (squash) October 16, 2024 19:42
@r100-stack r100-stack merged commit 774a954 into main Oct 16, 2024
15 of 16 checks passed
@r100-stack r100-stack deleted the r/table-paginator-show-ellipses-only-when-needed branch October 16, 2024 19:50
@imodeljs-admin imodeljs-admin mentioned this pull request Oct 15, 2024
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