fabric-ds / issues

Site for tracking tasks and issues related to Fabric
0 stars 0 forks source link

Support inline link in toasts #62

Open digitalsadhu opened 2 years ago

digitalsadhu commented 2 years ago

Design specifies that links can be added to messages on the right hand side, just left of the close button.

Screenshot 2022-04-04 at 10 41 55

Skadefryd commented 2 years ago

Should probably be very strict on that implementation? like not allowing a link if the thing is set up to auto-close.

digitalsadhu commented 2 years ago

There is a wider discussion to be had regarding accessibility and toasts. Normally (but perhaps not always), a toast is triggered when the user interacts with the page in some way. Our toast implementation means that the toast will appear at the bottom of the screen. This is fine so long as it is not interactive. That is to say that it doesn't have a link or a close button. As soon as it is interactive, for accessibility reasons, the toast needs to be located directly after the action that triggered it. Is this stated correctly @martin-storsletten ?

martin-storsletten commented 2 years ago

That's correct. And here are a few examples: