-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
chore(pagination): tweaks to pagination PR #4622 #4667
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
chore(pagination): tweaks to pagination PR #4622 #4667
Conversation
Codecov Report
@@ Coverage Diff @@
## feat-pagination-btn-classes-and-first-last-numbers #4667 +/- ##
======================================================================================
+ Coverage 99.92% 99.92% +<.01%
======================================================================================
Files 253 253
Lines 5230 5259 +29
Branches 1388 1399 +11
======================================================================================
+ Hits 5226 5255 +29
Misses 3 3
Partials 1 1
Continue to review full report at Codecov.
|
|
Need to add in a few special case handling for: (where page 2 should be shown instead of first ellipsis) And (where page 9 should be shown instead of last ellipsis) Needs some additional logic tests in the computation of the pagination page list array and the pagination params object computed props, and a few extra conditionals in the render function |
|
All is working great now, except for slight aesthetics when limit is less than 4 (below or equal to the ellipsis threshold) |
|
It works well for limit of 4 and greater. Below that the layout isn't as stable (# of page buttons present), but is still usable. We can maybe just recommend that that option be used for limits >= 4 |
|
@jackmu95 looks like it is now working well with any button limit and number of pages. |
|
we will need to add some docs in the main PR (after this one is merged). When first/last number is enabled, the limit does not include the first/last number button (similar to how limit doesn't include the first page / last page bookend buttons. |
538ea8e
into
feat-pagination-btn-classes-and-first-last-numbers




Describe the PR
Tweaks to PR #4622 for better aria handling of buttons.
To do:
first-numberandlast-numberpropsPR checklist
What kind of change does this PR introduce? (check at least one)
Does this PR introduce a breaking change? (check one)
The PR fulfills these requirements:
devbranch, not themasterbranch[...] (fixes #xxx[,#xxx]), where "xxx" is the issue number)fix(alert): not alerting during SSR render,docs(badge): update pill examples,chore(docs): fix typo in README, etc). This is very important, as theCHANGELOGis generated from these messages.If new features/enhancement/fixes are added or changed:
package.jsonfor slot and event changes)If adding a new feature, or changing the functionality of an existing feature, the PR's
description above includes: