An opinionated toast component for React.
Replace wrapping div with section (#38)
Emil Kowalskia79c54a5f9d7
diff --git a/src/index.tsx b/src/index.tsxindex 427098f..ea17cb7 100644--- a/src/index.tsx+++ b/src/index.tsx@@ -445,7 +445,7 @@ const Toaster = (props: ToasterProps) => {return (// Remove item from normal navigation flow, only available via hotkey- <div role="region" aria-label={`Notifications ${hotkeyLabel}`} tabIndex={-1}>+ <section aria-label={`Notifications ${hotkeyLabel}`} tabIndex={-1}><oltabIndex={-1}ref={listRef}@@ -500,7 +500,7 @@ const Toaster = (props: ToasterProps) => {/>))}</ol>- </div>+ </section>);};export { toast, Toaster, ToastT, ExternalToast };