Revert pa11y changes and add role

This commit is contained in:
Rebecca Hsieh 2024-05-30 12:00:16 -07:00
parent bc08e8e556
commit 009d8948bc
No known key found for this signature in database
2 changed files with 19 additions and 27 deletions

View file

@ -3,8 +3,6 @@
"concurrency": 1, "concurrency": 1,
"timeout": 30000 "timeout": 30000
}, },
"urls": [
{
"urls": [ "urls": [
"http://localhost:8080/", "http://localhost:8080/",
"http://localhost:8080/health/", "http://localhost:8080/health/",
@ -23,10 +21,5 @@
"http://localhost:8080/request/requirements/", "http://localhost:8080/request/requirements/",
"http://localhost:8080/request/finished/", "http://localhost:8080/request/finished/",
"http://localhost:8080/user-profile/" "http://localhost:8080/user-profile/"
],
"ignore": [
"WCAG2AA.Principle2.Guideline2_2.2_2_1.H91"
]
}
] ]
} }

View file

@ -402,8 +402,7 @@ class DomainRequestWizard(DomainRequestWizardPermissionView, TemplateView):
} }
else: # form is not complete else: # form is not complete
modal_button = ( modal_button = (
"<!-- pa11y-ignore-next-line WCAG2AA.Principle2.Guideline2_2.2_2_1.H91 -->" '<button type="button" role="submit" class="usa-button" data-close-modal>Return to request</button>'
'<button type="button" class="usa-button" data-close-modal>Return to request</button>'
) )
context_stuff = { context_stuff = {
"form_titles": self.TITLES, "form_titles": self.TITLES,