Skip to content

Conversation

@alionazherdetska
Copy link
Contributor

@alionazherdetska alionazherdetska commented Nov 14, 2025

📄 Description

Adds a new post-pagination web component (the initial styles were added just to be able to check the responsive behaviour works) for navigating through paginated content. The component features:

  • Responsive design that adapts page button visibility based on available width
  • Smart ellipsis handling for large page counts
  • Full keyboard navigation support
  • Accessibility with proper ARIA labels
  • Disabled state support
  • Auto-clamping of out-of-range page values

The component uses a hidden measurement system (similar to breadcrumbs) to calculate how many page buttons can fit in the available space, automatically collapsing intermediate pages into ellipses when needed.

Note: This is currently a raw component (only visible in dev mode). Final design system styling will be implemented in a follow-up ticket, that is why the changeset has not been added yet.

🚀 Preview link

Pagination docs


🔮 Design review

  • Design review done
  • No design review needed

📝 Checklist

  • ✅ My code follows the style guidelines of this project
  • 🛠️ I have performed a self-review of my own code
  • 📄 I have made corresponding changes to the documentation
  • ⚠️ My changes generate no new warnings or errors
  • 🧪 I have added tests that prove my fix is effective or that my feature works
  • ✔️ New and existing unit tests pass locally with my changes

@alionazherdetska alionazherdetska requested a review from a team as a code owner November 14, 2025 08:07
@alionazherdetska alionazherdetska linked an issue Nov 14, 2025 that may be closed by this pull request
5 tasks
@changeset-bot
Copy link

changeset-bot bot commented Nov 14, 2025

⚠️ No Changeset found

Latest commit: 8f9e827

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@alionazherdetska alionazherdetska marked this pull request as draft November 14, 2025 08:07
@swisspost-bot
Copy link
Contributor

swisspost-bot commented Nov 14, 2025

Related Previews

@alionazherdetska alionazherdetska marked this pull request as ready for review November 21, 2025 10:02
@alionazherdetska alionazherdetska requested a review from a team as a code owner November 21, 2025 10:02
@alionazherdetska alionazherdetska requested review from oliverschuerch and removed request for gfellerph November 21, 2025 11:08
@alionazherdetska alionazherdetska force-pushed the 6284-web-component-func-pagination branch from 5d1a3d2 to e503471 Compare November 21, 2025 11:23
@sonarqubecloud
Copy link

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.

[web component func] Pagination

3 participants