clean-and-green-philly
clean-and-green-philly copied to clipboard
adding focus and keyboard accessibility to the cookie consent buttons
- You can now tab to the cookie options when they appear and when you select the button in the footer
- You can activate the cookie settings by pressing ENTER or SPACEBAR on the button in the footer
- The cookie setting are working for me on Apple VO, I have applied aria-describedby on the div and added the role of region.
Note: I added positive tab values for the Accept and Decline buttons. This feels a little wrong, I am not sure if this is best practice, but it did seem to work in allowing those items to receive focus first.
This closes issue https://github.com/CodeForPhilly/clean-and-green-philly/issues/859