Skip to content

Commit 6701636

Browse files
committed
Add screen reader instructrions for continuing session
When inactive the modal that asks the user to continue their session now includes a screen ready only instruction to reduce confusion
1 parent 43d213c commit 6701636

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ parameters:
109109
default: "main"
110110
type: string
111111
sandbox_git_branch: # change to feature branch to test deployment
112-
default: "js-79-logout-on-inactive"
112+
default: "js-79-pr-feedback"
113113
type: string
114114
jobs:
115115
build:

frontend/.env

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
BACKEND_PROXY=http://localhost:8080
2-
REACT_APP_INACTIVE_MODAL_TIMEOUT=60000
3-
REACT_APP_SESSION_TIMEOUT=120000
2+
REACT_APP_INACTIVE_MODAL_TIMEOUT=1500000
3+
REACT_APP_SESSION_TIMEOUT=1800000

frontend/README.md

+7
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ There are yarn commands for starting/testing/linting the frontend defined a dire
1818
| `yarn lint` | Run the linter |
1919
| `yarn lint:ci` | Run the linter outputting results to xml files |
2020

21+
## Build Environment Variables
22+
23+
| Variable | Description |
24+
|-|-|
25+
| `REACT_APP_INACTIVE_MODAL_TIMEOUT` | Amount of time before the "Idle Logout" modal is shown to a user, in milliseconds |
26+
| `REACT_APP_SESSION_TIMEOUT` | Amount of time before an inactive user is automatically logged out |
27+
2128
## Create React App
2229

2330
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

frontend/src/components/IdleModal.js

+3
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ function IdleModal({ modalTimeout, logoutTimeout, logoutUser }) {
5656
{ timeToLogoutMsg }
5757
{' '}
5858
unless you become active again.
59+
<span className="usa-sr-only">
60+
Press any key to continue your session
61+
</span>
5962
</Alert>
6063
</Modal>
6164
));

0 commit comments

Comments
 (0)