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

feat(pagination): remove duplicate accessibility labels #1429

Closed
wants to merge 1 commit into from

Conversation

thbt
Copy link
Contributor

@thbt thbt commented Apr 3, 2017

Remove the .sr-only span for boundary and direction links as there already is an aria-label, which is in the standard and is supported by most screen readers.

This is based on a recommandation i made on this issue : twbs/boostrap#22009

Before submitting a pull request, please make sure you have at least performed the following:

  • read and followed the CONTRIBUTING.md guide.
  • built and tested the changes locally.
  • added/updated any applicable tests.
  • added/updated any applicable API documentation.
  • added/updated any applicable demos.

@pkozlowski-opensource
Copy link
Member

@thbt I'm not sure I understand reasoning behind the test changes. Could you please have a look at my comments and clarify?

Remove the `.sr-only` span for boundary and direction links as there already is an `aria-label`
@thbt
Copy link
Contributor Author

thbt commented Apr 5, 2017

There was some code left over from another PR, it's fine now. I modified the tests because there is no "Previous" or "Next" in the text, since it is only present in the aria-label.

I can add a test to check that there is actually an aria-label if you want.

@pkozlowski-opensource pkozlowski-opensource added this to the 1.0.0-alpha.23 milestone Apr 6, 2017
@pkozlowski-opensource
Copy link
Member

LGTM

@thbt thbt deleted the pagination-span branch April 6, 2017 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants