From ceff269ce44276376922a02ada1bb900bfc3a5da Mon Sep 17 00:00:00 2001 From: StephanieLongden Date: Fri, 18 Aug 2023 14:04:01 +0100 Subject: [PATCH] content and spacing changes --- .../patterns/stop-a-service-timing-out-new.tsx | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/apps/docs/src/common/pages/patterns/stop-a-service-timing-out-new.tsx b/apps/docs/src/common/pages/patterns/stop-a-service-timing-out-new.tsx index 4aacd467..716a388b 100644 --- a/apps/docs/src/common/pages/patterns/stop-a-service-timing-out-new.tsx +++ b/apps/docs/src/common/pages/patterns/stop-a-service-timing-out-new.tsx @@ -55,6 +55,7 @@ const Page: FC = ({ location }) => (

If the user does not take action within the time limit, send them to a timeout page that explains what has happened and gives options for how to continue.

Investigate the most appropriate session length for your service, based on the needs of users and security requirements.

You may choose to add a ‘Warning’ prefix to the title of your page once the countdown has started, to alert users who are working on a different tab.

+

You may choose to add a ‘Warning’ prefix to the title of your page once the countdown has started, to alert users who are working on a different tab.

The timeout warning modal should:

@@ -91,11 +92,12 @@ const Page: FC = ({ location }) => (

As an example, the timeout warning could be triggered by 25 minutes of inactivity and show a 5-minute countdown.

The time should count down in minutes until the last minute, when it should change to 20-second intervals, both on the modal and for screen reader alerts.

-

Use Aria live = polite for the countdown message so it will be announced as it is updated. For a screen reader to announce content updates, the content must be inserted into a live region element.

+

Use aria-live="polite" for the countdown message so it will be announced as it is updated. For a screen reader to announce content updates, the content must be inserted into a live region element.

When the user is not signed into a service

If a user is not signed in, tell them their progress will not be saved if the time runs out.

If the user is timed out, consider the onwards journey.

+

Your page will time out soon

@@ -107,15 +109,15 @@ const Page: FC = ({ location }) => ( Stay on this page
- + +

Accessibility

-

Give users an appropriate time to react to a timeout - use the accessibility timeouts and time limits guidance.

-

Ensure screen readers announce the remaining time - use aria-live =polite so the hidden countdown does not interrupt other content being read out.

+

Give users an appropriate time to react to a timeout - use the accessibility timeouts and time limits guidance.

+

Ensure screen readers announce the remaining time - use aria-live="polite" so the hidden countdown does not interrupt other content being read out.

- -

When the modal dialog opens:

+

When the modal dialog opens:

  • prevent the user from interacting with the underlying page
  • add an overlay to the underlying page content to show users that they cannot interact with it
  • @@ -123,8 +125,7 @@ const Page: FC = ({ location }) => (
- -

For a screen reader:

+

For a screen reader:

  • announce that a dialogue has opened
  • read the modal content, including the calls-to-action