labelBehaviour
LabelBehaviour
(optional)
for v1 compatibility
V1 of react-reponsive-pagination used visually hidden span tags for screen reader labels (the current version uses only aria attributes). This prop can be used to re-enable the V1 behaviour (if preferred):
By default 'sr-only' is used as the class for the visually hidden spans. To override this, pass srOnlyClassName
:
The accessibility label for the active page defaults to (current)
, to override this pass a11yActiveLabel
:
(the active label can be turned off by passing a value of '')
For reference, here's an example of a visually hidden css style: