spectrum-web-components
spectrum-web-components copied to clipboard
Review `sp-toast` timeout pattern.
trafficstars
When an sp-toast is appropriately configured it should be allowed to "close" itself. Currently, the timeout attribute is surfaced to do so by ensuring that when a number is supplied the greater of it or 6000 is set to the expected length of time before it is dismissed.
We need to take into account the following:
- ~documenting usage of the
timeoutattribute and the fast that 6000 is the base, regardless of user input due to accessibility requirements~ - surfacing an export or API to allow for content beyond the baseline of 120 words to be supported by an accessible timeout
- revisit the attribute naming scheme to ensure that it appropriately supports the functionality herein.