Conversation
There was a problem hiding this comment.
Note: I realized this was a deeper rabbit hole than I imagined it would be after already pretty far down the rabbit hole 😅 (sunk cost fallacy and all that)
The reason for this is that Capybara's "label" checks are pretty forgiving, and don't require exactness. They also don't account for things like aria-hidden elements within the label. So a naive check for a label containing just "Text or voice message" would pass on main and not be sufficient for protecting against regressions.
|
As a part of this ticket, I am unable to trigger the reading of the auth methods description. Is that something that we want to do in this ticket? Screen.Recording.2023-05-03.at.2.44.00.PM.mov |
|
@jmdembe Is the description announced when you stay on the checkbox for a moment? It's expected that I'll plan to test this out as well. |
On VoiceOver, it is not automatic. After reading and pausing, it will ask if you want to see more content and then read the description from there. I think this is fine because its a tool that is available. This is probably more of a "Today I Learned" moment. |
|
Here is what I experienced as I said in my second comment. Again, this looks okay because I would think that users would know about that toggle after it is announced Screen.Recording.2023-05-03.at.3.18.36.PM.mov |
This might depend on the browser? In Safari + VoiceOver, it reads for me after a short pause†. I would expect that this being the default treatment of description text is "expected", though I think it's a totally valid point to consider how (or if) this information is able to be effectively communicated. Similar to some pragmatic tips around incorporating descriptions in labels instead of † Aside: Unrelated to this work, I notice it also re-reads the entire "Add another layer of security by selecting a multi-factor authentication method. We recommend you select at least (2) two different options in case you lose one of your methods." for every single checkbox when navigating through the content, which is pretty exhausting. It might have to do with how we mark up that content as a |
changelog: User-Facing Improvements, Accessibility, Improve labels for MFA setup options
d3dc5d3 to
216adb7
Compare
🎫 Ticket
LG-9424
🛠 Summary of changes
Updates the labels associated with MFA setup choices so that they are more succinct and non-repetitive, and so that additional descriptive content is read as a descriptor (using
aria-describedby), allowing essential role information to be shared sooner.Recommend reviewing with whitespace changes hidden: https://github.com/18F/identity-idp/pull/8327/files?w=1
📜 Testing Plan
👀 Screenshots
Screenshots via Chrome's Accessibility DevTools inspector: