Ehh, I was hoping to see something visually lighter. Anyway, nice to see that @coryrylan has so much energy. Looks like Clarity development speed is increasing.
The prototype looks nice.
I have a general question though. Cory, it's not about the way you are implementing it, but more about the spec we have.
Are we sure that in the "Error state" handling we want to replace the step number with exclamation mark circle? It looks pretty cool, I admit, but I am not sure it is very accessible. We're losing information that may be helpful for the accessible navigation this way.
Any thoughts, team?
@Jinnie
Replacing the step number is intentional in the design for a couple of reasons.
We need to show error state in all components along two communicative paths. We cannot only use color because users who cannot discern color will not understand there is an error. So we have to either use color and iconography or color and text.
The product teams wanted to keep the design as compact and space-constrained as possible. So we could not reserve a place to display an error icon.
The visual impact of switching out the number for the icon was the preference because the designers found that, say, placing the icon on the far right made it too easy for users to overlook. They weren't seeing the icon on the far right.
In addition to that, we have no control over how wide these steppers are meant to be. They take all the horizontal space available to them. That was a further reason to not place the icon on the far right. So having it in a consistent place (where the numbers are) was a more resilient design choice.
Lastly, the numbers are not crucial information. They are a convenience if nothing else. The functionality of the stepper requires that one thing follows another. In programming terms, it is more of a linked list than an array. So having the index of every step available to end users is a nice-to-have. If a user has step 5, an error icon, and step 7 consecutively and cannot infer that the error icon was previously the number 6, there is not much we can do to help them. The product designers tested this and found that conclusion to be sound. Replacing the numbers drew attention to error states. Users did not have any problems understanding that the steps proceeded one after the other, even when the error icons were present.
Additionally, the default state shows the numbers. So the discovery on that is minimal. The stepper shows up with numbers. The error icons show up when something has gone wrong. They go away when the user fixes whatever was broken.
@mathisscott I agree numbers are not crucial. Thanks for the detailed answer.
I checked it with a screen reader and it just skipped the error icon. Primarily that's what caught my attention and made me start the conversation. But for testing against a prototype, this is quite okay. I'm sure we'll be handling it in the final version.
The icon should have a localized title that reads something like “Error” on a screen reader. Well have that in the Angular version, I guess this static example doesn’t have it.
EDIT: oops, it’s because of #2608.
Just a few comments.
Hi there đź‘‹, this is an automated message. To help Clarity keep track of discussions, we automatically lock closed issues after 14 days. Please look for another open issue or open a new issue with updated details and reference this one as necessary.
Most helpful comment
The icon should have a localized title that reads something like “Error” on a screen reader. Well have that in the Angular version, I guess this static example doesn’t have it.
EDIT: oops, it’s because of #2608.