Closed codekipple closed 5 years ago
This component fits well as spinbutton as defined in the WAI-ARIA Authoring Practices 1.1 https://www.w3.org/TR/wai-aria-practices-1.1/#spinbutton
I've implemented the spinbutton pattern based on the spec and their example demo:- https://www.w3.org/TR/wai-aria-practices-1.1/examples/spinbutton/datepicker-spinbuttons.html
<button>
page up
up arrow
page down
down arrow
home
end
Test the component using JAWS screenreader.
Thanks, this make it clean :)
This component fits well as spinbutton as defined in the WAI-ARIA Authoring Practices 1.1 https://www.w3.org/TR/wai-aria-practices-1.1/#spinbutton
I've implemented the spinbutton pattern based on the spec and their example demo:- https://www.w3.org/TR/wai-aria-practices-1.1/examples/spinbutton/datepicker-spinbuttons.html
Changes
<button>
for keyboard focusable buttonspage up
andup arrow
increment valuepage down
anddown arrow
decrement valuehome
sets value to minend
sets value to maxTesting
<button>
they can be tabbed to.Things to do
Test the component using JAWS screenreader.