In most cases, I would anticipate the role and aria-live values would be 'alert' and 'assertive, respectively. Since this may not always be the case, I added the props role and ariaLive so that the user can change the values but also added default values for both of these properties.
Describe your changes
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality
to change)
Checklist:
[x] I have run eslint on the code
[x] I have added JSDoc for all of my code (where applicable)
In most cases, I would anticipate the
role
andaria-live
values would be 'alert' and 'assertive, respectively. Since this may not always be the case, I added the propsrole
andariaLive
so that the user can change the values but also added default values for both of these properties.Describe your changes
Types of changes
Checklist:
eslint
on the codePriority:
Related Issues:
Fixes #374