Skip to content
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

Pagination #370

Open
melwong-jcc opened this issue Jun 17, 2020 · 0 comments
Open

Pagination #370

melwong-jcc opened this issue Jun 17, 2020 · 0 comments

Comments

@melwong-jcc
Copy link
Collaborator

Implementation

Pagination navigation for multi-paged results

Fields and Variants

  • pagination:
    • heading_id (default: "Pagination")
    • total_pages
    • current
    • ellipses_previous (true/false)
    • ellipses_next (true/false)
    • first_text (default: "« First")
    • first:
      • href
      • attributes
    • previous_text (default: "‹ Previous")
    • previous:
      • href
      • attributes
    • next_text (default: "Next ›")
    • next:
      • href
        attributes
    • last_text (default: "Last »")
    • last:
      • href
        attributes
    • items:
      • href
        attributes
      • ...

Accessibility

  • Screen reader only labels to describe total number of pages and all elements

Responsive

  • Replaces page links with "X of TOTAL" when viewing on smaller screens
  • Trims white space between all elements
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

No branches or pull requests

1 participant