From afb8c5a11c46945c56392152913f6c00b104e6cc Mon Sep 17 00:00:00 2001 From: Andrew Steele Date: Wed, 15 Nov 2023 14:10:41 -0500 Subject: [PATCH] A11y improvements for va-crisis-line-modal, va-minimal-header, va-modal (#940) * A11y improvements for CLM and MH and Modal * Streamlining the divs for CLM and switching to V3 modal * Adding 'focus outline' to the VA logo's link * Making modal content fit better on smaller screens * Removing "describedby" for modal to prevent run-on screen reading * Version bump --- .../test/va-crisis-line-modal.e2e.ts | 96 ++++++------ .../va-crisis-line-modal.tsx | 137 +++++++++--------- .../test/va-minimal-header.spec.tsx | 4 +- .../va-minimal-header/va-minimal-header.scss | 4 + .../va-minimal-header/va-minimal-header.tsx | 14 +- .../components/va-modal/test/va-modal.e2e.ts | 2 +- .../src/components/va-modal/va-modal.scss | 7 +- .../src/components/va-modal/va-modal.tsx | 9 +- 8 files changed, 134 insertions(+), 139 deletions(-) diff --git a/packages/web-components/src/components/va-crisis-line-modal/test/va-crisis-line-modal.e2e.ts b/packages/web-components/src/components/va-crisis-line-modal/test/va-crisis-line-modal.e2e.ts index d182a7291..fea5c6ead 100644 --- a/packages/web-components/src/components/va-crisis-line-modal/test/va-crisis-line-modal.e2e.ts +++ b/packages/web-components/src/components/va-crisis-line-modal/test/va-crisis-line-modal.e2e.ts @@ -24,60 +24,56 @@ describe('va-crisis-line-modal', () => { -
-
-
-

- If you are a Veteran in crisis or concerned about one, connect with our caring, qualified responders for confidential help. Many of them are Veterans themselves. -

- - Get more resources at - - VeteransCrisisLine.net - -
-
-
+

+ If you are a Veteran in crisis or concerned about one, connect with our caring, qualified responders for confidential help. Many of them are Veterans themselves. +

+ +

+ Get more resources at + + VeteransCrisisLine.net + +

`); }); - + it('shows modal when triggered', async () => { const page = await newE2EPage(); await page.setContent(``); diff --git a/packages/web-components/src/components/va-crisis-line-modal/va-crisis-line-modal.tsx b/packages/web-components/src/components/va-crisis-line-modal/va-crisis-line-modal.tsx index 82f676589..4d34103ba 100644 --- a/packages/web-components/src/components/va-crisis-line-modal/va-crisis-line-modal.tsx +++ b/packages/web-components/src/components/va-crisis-line-modal/va-crisis-line-modal.tsx @@ -53,79 +53,72 @@ export class VACrisisLineModal { onCloseEvent={() => this.setNotVisible()} visible={this.isOpen} large={true} + uswds={true} > -