will_paginate-bootstrap icon indicating copy to clipboard operation
will_paginate-bootstrap copied to clipboard

Supporting Screen Readers

Open Ariel-Thomas opened this issue 11 years ago • 1 comments

Currently, from a screen reader perspective, the pages are not obviously labeled as such. Bootstrap 3.0 provides the 'sr-only' class to allow bits of html to only be shown to screen readers. The pages should really have a span which includes "Page " in front of them to make things easier on screen readers. The result for a screen reader list of links goes from "1", "2", "3 to "Page 1" "Page 2", "Page 3".

I used your existing renderer code for rails and made this addition and it seems to work fine. Perhaps in the gem this should be the default behavior with a will_paginate option to disable it?

I can do a pull request with the changes, if needed.

Ariel-Thomas avatar Apr 17 '14 17:04 Ariel-Thomas

:+1:

acrogenesis avatar Apr 17 '14 23:04 acrogenesis