design-system-react
design-system-react copied to clipboard
Toast: icon colours off, small docs update for duration
The icon colours are off
The React implementation is inconsistent with SLDS (https://latest-204.lightningdesignsystem.com/components/notifications#flavor-toast).
The close button and icon are incorrect.

Also, docs could use some tweaking
Whomever does this, while you're in there, please update the comments for the duration prop to mention that it is expecting milliseconds.
The fact that it is milliseconds makes sense if you are very familiar with javascript, but I suspect that many people who end up using this library will not be and might think CSS's duration might be a good format 0.5 (seconds). Zero-point-five milliseconds would be quite fast. ;)