mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-04-15 23:01:00 -04:00
Make all control buttons aria-expanded=false
Suggested by the Digital Accessibility Centre in their report. Giving these buttons aria-expanded=false indicates: - they control a section on the page - that section is collapsed (and so clicking the button will open it)
This commit is contained in:
@@ -261,6 +261,8 @@ describe('TemplateFolderForm', () => {
|
||||
|
||||
expect(document.querySelector('button[value=add-new-template]')).not.toBeNull();
|
||||
expect(document.querySelector('button[value=add-new-folder]')).not.toBeNull();
|
||||
expect(document.querySelector('button[value=add-new-template]').getAttribute('aria-expanded')).toEqual('false');
|
||||
expect(document.querySelector('button[value=add-new-folder]').getAttribute('aria-expanded')).toEqual('false');
|
||||
expect(visibleCounter).not.toBeNull();
|
||||
|
||||
});
|
||||
@@ -544,6 +546,8 @@ describe('TemplateFolderForm', () => {
|
||||
|
||||
expect(formControls.querySelector('button[value=move-to-new-folder]')).not.toBeNull();
|
||||
expect(formControls.querySelector('button[value=move-to-existing-folder]')).not.toBeNull();
|
||||
expect(formControls.querySelector('button[value=move-to-new-folder]').getAttribute('aria-expanded')).toEqual('false');
|
||||
expect(formControls.querySelector('button[value=move-to-existing-folder]').getAttribute('aria-expanded')).toEqual('false');
|
||||
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user