Replies: 2 comments 2 replies
-
Hey @jcklpe ! Great question. Let me raise this with the team and see if they have any thoughts. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@jcklpe not a UX expert, so happy to be corrected but there are several ways to get out of the modal. You can close via escape, by clicking on overlay, and the close button. The close button has an aria-label that says Close this window, I don't know if adding another with similar text would help. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The USWDS Modal guidelines say:
"there needs to be a clear way to accept or reject the content in the modal"
I have a two step modal that looks sorta like this:
![image](https://user-images.githubusercontent.com/9451726/157344493-0d1107b1-bfc6-4d03-895b-d892d17db976.png)
A teammate has raised a concern that this does not follow the above quoted guidelines because the X button isn't explicit enough. All the examples given on the USWDS guideline pages are giving binary choices (login/logout, save/don't save)
They feel that the close button should also be an explicit choice like this:
![image](https://user-images.githubusercontent.com/9451726/157345125-713075fb-6c03-4fc4-b7d3-58f19f603a46.png)
I'm not asking ya'll to sit here King Solomon style and adjudicate this specific case for us, but I was wondering if ya'll could provide some clarifications (and in turn this clarification might also be a helpful addition to the docs).
Is the guideline either:
Beta Was this translation helpful? Give feedback.
All reactions