Closed ABradham closed 1 year ago
Added alertText
field to redux store and refactored UsersCleared
component to fetch props directly from store (no passing down props from parent component or conditional rendering from parent component). This pattern seems extensible to other alerts; It might make sense to rename the component from UsersCleared
to UserAlerts
so that other actions that should notify screen readers (creating users, fetching data from the store, starting the emulator, etc.) can take advantage of this component / pattern as well.
Fixed an accessibility bug where screen readers wouldn't report that all users had been cleared from the table after the
Clear All Data
button on theAuthentication
screen was pressed.Fixed by adding a visually hidden aria alert that notifies screen readers without changing the UI.
This change also required the addition of a new field to the
AuthState
redux store.