Skip to content

Commit 9fbc764

Browse files
committed
feat: move some v2 features to v1
1 parent cee96ce commit 9fbc764

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/research/pagination.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,16 @@ The first phase focuses on establishing a static, semantic, and accessible pagin
7575
* **Visual States and Accessibility:** Explicit styling of the active page (identified by `aria-current="page"`) as well as disabled buttons at the edge boundaries. Disabled elements must have the `disabled` attribute (for `<button>`) or `tabindex="-1"` combined with `pointer-events: none` (for `<a>` tags).
7676
* **Event Handling:** Integration of a simple, typed `onPageChange(pageNumber: number)` callback to inform the parent container.
7777
* **Touch-Optimized Layout:** Horizontal alignment with sufficient spacing.
78+
* **Micro-Interactions:** Implementation of subtle hover transitions (e.g., background color change) and focus indicators for keyboard use.
79+
* **Reactive Responsive Design:** Automatic reduction of `siblingCount` to 0 on mobile viewports to prevent horizontal scrolling (collapsing the layout from `< 1... 4 5 6... 9 >` to `< 1... 5... 9 >`).
80+
* **Truncation (Ellipsis):** Implementation of robust logic for omission marks (`...`). Introduction of flexible props `siblingCount` (pages next to the current page) and `boundaryCount` (pages at the outer edges).
7881

7982
### 🔵 V2 - Intermediate features
8083

8184
The second phase transforms the base component into a responsive pagination, optimized for use in complex single-page applications.
8285

83-
* **Truncation (Ellipsis):** Implementation of robust logic for omission marks (`...`). Introduction of flexible props `siblingCount` (pages next to the current page) and `boundaryCount` (pages at the outer edges).
84-
* **Reactive Responsive Design:** Automatic reduction of `siblingCount` to 0 on mobile viewports to prevent horizontal scrolling (collapsing the layout from `< 1... 4 5 6... 9 >` to `< 1... 5... 9 >`).
8586
* **Items per Page Control:** Optional addition of a native select dropdown at the component's edge to control data density (`pageSize`). This requires an `onPageSizeChange` callback and localizable text labels (e.g., "Showing 1-10 of 100 results").
8687
* **Routing and Framework Integration:** Introduction of slots. This allows consuming developers to inject framework-specific link components for SEO-friendly, server-side rendered URLs without breaking CSS.
87-
* **Micro-Interactions:** Implementation of subtle hover transitions (e.g., background color change) and focus indicators for keyboard use.
8888

8989
### 🔴 V3 - Advanced features
9090

0 commit comments

Comments
 (0)