You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When sp-help-text is used in the negative-help-text slot it is expected that the error message will be read to the user. This works great if the user simply presses a single keypress but when the user types more info into the field the error message is supressed.
Actual behavior
The error message doesn't get read as it its reading is suppressed by the next keypress.
@Westbrook not sure - are you doing anything special to make this get read at the moment or is it merely a consequence of setting invalid which makes the message get read?
We're not doing much special here, no. I think it's mainly because it's associated to the focused element via aria-describedby. So, maybe something more insistent would be useful.
A live region of some sort could also solve the issue on iOS where the error message is not read at all (until you refocus into the field anyway)
It is certainly worth investigating although I'd love to solve this in a more standards compliant way.
FYI react-spectrum has the same issue but I didn't pick it up in their audit due to their documentation testcases for errors not allowing more than a single digit. I'd like all of us to converge on the same solution.
Code of conduct
Impacted component(s)
sp-help-text
Expected behavior
When sp-help-text is used in the negative-help-text slot it is expected that the error message will be read to the user. This works great if the user simply presses a single keypress but when the user types more info into the field the error message is supressed.
Actual behavior
The error message doesn't get read as it its reading is suppressed by the next keypress.
Screenshots
No response
What browsers are you seeing the problem in?
Firefox, Chrome, Microsoft Edge
How can we reproduce this issue?
Sample code that illustrates the problem
No response
Logs taken while reproducing problem
No response
The text was updated successfully, but these errors were encountered: