The next and previous buttons are implemented using <span>, thus they are not operable via enter or space press. Please consider it replacing with <button>.
Pros
tabindex=0 is no more needed, <button> is a focusable element
role=button is no more needed, <button> exposes the role by default
previousClickHandler and nextClickHandler will get invoked when the buttons are activated using keyboard.
Cons
- might need to update the styles