lion/packages/ui/components
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
..
accordion fix: add @slot and @customElement for better ce-manifest output 2025-07-31 21:57:46 +02:00
button fix: cleanup IE11 code LionButton 2025-07-31 21:57:46 +02:00
calendar feat: add Turkish (tr) translations to form-core, input-datepicker & pagination (#2516) 2025-05-15 16:56:48 +02:00
checkbox-group fix: add @slot and @customElement for better ce-manifest output 2025-07-31 21:57:46 +02:00
collapsible fix: add @slot and @customElement for better ce-manifest output 2025-07-31 21:57:46 +02:00
combobox fix: improve the way the default slots are moved inside the component 2025-10-07 12:35:09 +02:00
core fix: improve the way the default slots are moved inside the component 2025-10-07 12:35:09 +02:00
dialog fix: hidesOnEsc for nested overlays 2025-10-30 12:47:53 +01:00
drawer fix: add @slot and @customElement for better ce-manifest output 2025-07-31 21:57:46 +02:00
fieldset fix: add @slot and @customElement for better ce-manifest output 2025-07-31 21:57:46 +02:00
form fix: add @slot and @customElement for better ce-manifest output 2025-07-31 21:57:46 +02:00
form-core fix(form-core): improve validation feedback message for screen readers to make it one sentence (#2471) 2025-11-24 08:39:19 +01:00
form-integrations/test chore: clean test logs 2025-01-07 09:39:29 +01:00
helpers update prettier 2024-05-17 21:43:23 +02:00
icon Feat/lazy loaded singleton (#2570) 2025-09-17 09:12:06 +02:00
input Revert "fix: create exports for test-suites and test-helpers (#2010)" (#2012) 2023-06-13 15:14:47 +02:00
input-amount fix: editing negative numbers (#2538) 2025-07-17 14:20:26 +02:00
input-amount-dropdown fix(input-amount-dropdown): add translations (#2598) 2025-10-28 09:10:11 +01:00
input-date fix(localize): make use of formatDate locale option to parse the date correctly (#2270) 2024-04-23 14:42:00 +02:00
input-datepicker feat: add Turkish (tr) translations to form-core, input-datepicker & pagination (#2516) 2025-05-15 16:56:48 +02:00
input-email feat(@lion/ui): localize side effect free internally 2023-02-01 16:06:30 +01:00
input-file fix: add @slot and @customElement for better ce-manifest output 2025-07-31 21:57:46 +02:00
input-iban chore: update to lit3 and other dependencies 2024-03-27 18:00:34 +01:00
input-range fix(input-range): add screen-reader labels for minimum and maximum value 2024-02-19 15:59:56 +01:00
input-stepper fix(LionInputStepper): improve handling of decimal step values and al… (#2621) 2025-11-18 09:10:33 +01:00
input-tel chore: adds lion-input-amount-dropdown (#2505) 2025-08-13 14:40:57 +02:00
input-tel-dropdown fix: add @slot and @customElement for better ce-manifest output 2025-07-31 21:57:46 +02:00
listbox fix: improve the way the default slots are moved inside the component 2025-10-07 12:35:09 +02:00
localize Feat/lazy loaded singleton (#2570) 2025-09-17 09:12:06 +02:00
overlays fix: hidesOnEsc for nested overlays 2025-10-30 12:47:53 +01:00
pagination fix(pagination): remove unnecessary ellipsis when count equals visiblePages + 2 (#2624) 2025-11-24 09:17:41 +01:00
progress-indicator fix: add @slot and @customElement for better ce-manifest output 2025-07-31 21:57:46 +02:00
radio-group fix: add @slot and @customElement for better ce-manifest output 2025-07-31 21:57:46 +02:00
select fix: add @slot and @customElement for better ce-manifest output 2025-07-31 21:57:46 +02:00
select-rich fix: improve rendering for lion-select-rich by lit cache (#2566) 2025-09-03 15:01:43 +02:00
steps fix: add @slot and @customElement for better ce-manifest output 2025-07-31 21:57:46 +02:00
switch fix: add @slot and @customElement for better ce-manifest output 2025-07-31 21:57:46 +02:00
tabs fix: add @slot and @customElement for better ce-manifest output 2025-07-31 21:57:46 +02:00
textarea fix(textarea): fix box-sizing inside tests to make it work cross browser (#2210) 2024-03-27 18:02:16 +01:00
tooltip fix(ui): improve test experience in dev-mode 2024-10-30 15:51:55 +01:00
validate-messages feat: add Turkish (tr) translations to form-core, input-datepicker & pagination (#2516) 2025-05-15 16:56:48 +02:00