diff --git a/CHANGELOG.md b/CHANGELOG.md index f81d836c..d2f5893f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Selectable/expandable `DataTable` +## [0.9.7](https://github.com/IBM/carbon-components-svelte/releases/tag/v0.9.7) - 2020-08-23 + +- Fix `InlineNotification` and `ToastNotification` timeout + ([PR#235](https://github.com/IBM/carbon-components-svelte/pull/235), thanks [@Overbryd](https://github.com/Overbryd)) + ## [0.9.6](https://github.com/IBM/carbon-components-svelte/releases/tag/v0.9.6) - 2020-08-15 - use svelte compiler to generate TypeScript definitions, documentation (issue #227, PR #228) diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md index 55d1afbe..a547b8ac 100644 --- a/COMPONENT_INDEX.md +++ b/COMPONENT_INDEX.md @@ -2011,6 +2011,7 @@ import { InlineNotification } from "carbon-components-svelte"; | notificationType | "toast" | "inline" | "inline" | | kind | "error" | "info" | "info-square" | "success" | "warning" | "warning-alt" | "error" | | lowContrast | boolean | false | +| timeout | number | 0 | | role | string | "alert" | | title | string | "Title" | | subtitle | string | "" | diff --git a/types/index.d.ts b/types/index.d.ts index fd7d0fe5..8519b3f7 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1738,6 +1738,12 @@ export class InlineNotification extends CarbonSvelteComponent { */ lowContrast?: boolean; + /** + * Set the timeout duration (ms) to hide the notification after opening it + * @default 0 + */ + timeout?: number; + /** * Set the `role` attribute * @default "alert" @@ -4594,7 +4600,7 @@ export class ToastNotification extends CarbonSvelteComponent { lowContrast?: boolean; /** - * Set the timeout duration (ms) to hide the notification after closing it + * Set the timeout duration (ms) to hide the notification after opening it * @default 0 */ timeout?: number;