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 links are not keyboard accessible #66

Open
hidanielle opened this issue Sep 26, 2017 · 1 comment
Open

Pagination links are not keyboard accessible #66

hidanielle opened this issue Sep 26, 2017 · 1 comment

Comments

@hidanielle
Copy link

Because the links don't have an href attribute, they are not accessible by keyboard.

Recommendation to add an href or change links to <button>

@OziOcb
Copy link

OziOcb commented Sep 30, 2020

One solution is to:

  1. Copy the entire code from here to your project,
  2. Find these three functions getFullLinks, getLimitedLinks, getSimpleLinks (around line 430+)
  3. Inside each of them there's a data const, which is an object
  4. Add href attribute inside those objects like below
const data = {
  attrs: {
    href: "#",
  },
  on: {
    ...
  },
}

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

2 participants