touchpoints
touchpoints copied to clipboard
WIP focus setting for modal open and close
For @ryanwoldatwork and @iamjolly to pair on.
Relates to #480
Things to do:
- [x] Set focus on modal
div
when opened - [x] Set focus back to touchpoints
button
when modal is closed - [x] Confirm listener for
esc
keypress to run thehandleDialogClose
function. - [ ] Trap focus in modal when opened - see Using JavaScript to trap focus in an element for more info
- [ ] Test with keyboard only and with screen reader to confirm everything works as expected.
Note: This is a vanilla JS approach to adding accessibility to the modal. A next effort should involve looking at ways for touchpoints to use the USWDS modal component per #481.
thanks @iamjolly!!
paired today and check a few boxes here
Hey @iamjolly @ryanwoldatwork I'm working on a project that would implement Touchpoints on childcare.gov. Wanted to check in on the status of this update. Thanks in advance!
hi @cannandev - the path forward is pretty clear. Hoping to knock this out late next week.
@iamjolly , @ryanwoldatwork : Could you please provide a status update on this? Thanks!