spectrum-web-components icon indicating copy to clipboard operation
spectrum-web-components copied to clipboard

Review `sp-toast` timeout pattern.

Open Westbrook opened this issue 5 years ago • 0 comments
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 timeout attribute 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.

Westbrook avatar Dec 09 '19 21:12 Westbrook