lion/.changeset
Tudor Gradinaru ef0af0e41c
fix(pagination): remove unnecessary ellipsis when count equals visiblePages + 2 (#2624)
* fix(pagination): remove unnecessary ellipsis when count equals visiblePages + 1

Fixes #2589

- Changed condition from  to
- This allows one extra page to be displayed without ellipsis (e.g., [1,2,3,4,5,6] instead of [1,2,3,4,5,'...',6])
- Added test case to verify ellipsis is not shown when count=6 and visiblePages=5

* Update packages/ui/components/pagination/src/LionPagination.js

Co-authored-by: gerjanvangeest <gerjanvangeest@users.noreply.github.com>

* test: add additional ellipsis display tests

- Add test for count=7 (visiblePages + 2) without ellipsis
- Add test for count=8 (visiblePages + 3) with ellipsis
- Update condition to visiblePages + 2 to allow both count=6 and count=7 without ellipsis

---------

Co-authored-by: gerjanvangeest <gerjanvangeest@users.noreply.github.com>
2025-11-24 09:17:41 +01:00
..
config.json chore: migrate to changesets and github actions 2020-07-27 17:18:37 +02:00
four-rabbits-cover.md fix(LionInputStepper): improve handling of decimal step values and al… (#2621) 2025-11-18 09:10:33 +01:00
long-feet-battle.md fix(ValidateMixin): no dispatch validators on readOnly form items (#2610) 2025-11-11 09:44:17 +01:00
poor-queens-doubt.md fix(form-core): improve validation feedback message for screen readers to make it one sentence (#2471) 2025-11-24 08:39:19 +01:00
strange-rabbits-provide.md Fix/input stepper a11y: add component label to aria-label of increase and decrease buttons (#2618) 2025-11-13 14:35:44 +01:00
wise-zebras-allow.md fix(pagination): remove unnecessary ellipsis when count equals visiblePages + 2 (#2624) 2025-11-24 09:17:41 +01:00