[ ] I've read and understood the Contributing guidelines and have done my best effort to follow them.
[X] I've searched for any related issues and avoided creating a duplicate issue.
What happened
When using <ToastStack> component, the toastOptions.ariaProps option is not passed down to the HTML as the example in react-hot-toast docs.
What I expected to happen
I'm using ariaProps to add the role: 'status' property to the Toast HTML, but it doesn't work. I also suggest adding a default role when the user doesn't use ariaProps, to improve accessibility.
Bug Report
What happened
When using
<ToastStack>
component, thetoastOptions.ariaProps
option is not passed down to the HTML as the example in react-hot-toast docs.What I expected to happen
I'm using
ariaProps
to add therole: 'status'
property to the Toast HTML, but it doesn't work. I also suggest adding a default role when the user doesn't useariaProps
, to improve accessibility.Reproducing
package.json
:@vtex/shoreline-components@0.64.4