Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ DefaultToastOptions.parameters = {
description: {
story: [
'Default options for all toasts can be configured on the `Toaster`.',
'These options are only defaults and can be overriden using `dispatchToast',
'These options are only defaults and can be overridden using `dispatchToast`.',
].join('\n'),
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const DismissAll = (): JSXElement => {
DismissAll.parameters = {
docs: {
description: {
story: ['The `dismissAllToasts imperative API will dismiss all rendered Toasts.'].join('\n'),
story: ['The `dismissAllToasts` imperative API will dismiss all rendered Toasts.'].join('\n'),
},
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ DismissToast.parameters = {
story: [
'Toasts can be dismissed imperatively using the `dismissToast` API. In order to imperatively dismiss a ',
"Toast, it's necessary to dispatch it with a user provided id. You can use the id to dismiss the toast.",
"**Don't** use this API to dismiss toats when clicking on an action inside the toast, use the `ToastTrigger`",
"**Don't** use this API to dismiss toasts when clicking on an action inside the toast, use the `ToastTrigger`",
'instead.',
].join('\n'),
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ DismissToastWithAction.parameters = {
docs: {
description: {
story: [
"By wrapping a button or link with a `ToastTrigger`, it's possible to make that actionable",
"By wrapping a button or link with a `ToastTrigger`, it's possible to make that actionable",
'element dismiss the toast with a click.',
].join('\n'),
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ FocusKeyboardShortcut.parameters = {
docs: {
description: {
story: [
'Developers can be define a shortcut to focus on the most recent visible toast . This example',
'Developers can define a shortcut to focus on the most recent visible toast. This example',
'configures the shortcut to be `CTRL+M`. Once a toast is focused, all toasts belonging to that toaster',
'are paused and will not timeout.',
].join('\n'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ Intent.parameters = {
'- warning',
'- error',
'',
'Each intent affects the default icon in the title and its colour. These icon slots can be overriden',
'Each intent affects the default icon in the title and its color. These icon slots can be overridden',
'to render other content such as progress spinners or avatars.',
'',
'>intent determines the urgency of the screen reader aria-live narration.',
'To retain default intent styles, use the`politeness` option to override the urgency or aria-live narration.',
'> intent determines the urgency of the screen reader aria-live narration.',
'To retain default intent styles, use the `politeness` option to override the urgency or aria-live narration.',
].join('\n'),
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ Offset.parameters = {
description: {
story: [
'You can declare a static offset for toasts relative to the viewport. This offset can only be set on the',
"`Toaster` component, because it wouldn't make sense to have separate toast offsets for a toasts in a",
"`Toaster` component, because it wouldn't make sense to have separate toast offsets for a toast in a",
'single position.',
].join('\n'),
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ PauseAndPlay.parameters = {
'Toasts can be paused and played imperatively based on the user provided id.',
'',
'> ⚠️ Toasts paused this way can only be dismissed once the **app** plays it again. Make sure',
'that your app will will play a toast after it has been paused.',
'that your app will play a toast after it has been paused.',
].join('\n'),
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ ProgressToast.parameters = {
description: {
story: [
'In order to avoid excessive toast updates and optimize performance, we recommend encapsulating',
'progress bars with any state or remove data sources. That way the progress bar can tick independently',
'progress bars with any state or remote data sources. That way the progress bar can tick independently',
'and trigger the toast dismiss when it finishes. You can pass a callback to your toast content',
'to dismiss to the toast based on any side effects.',
'to dismiss the toast based on any side effects.',
].join('\n'),
},
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
A Toasts displays temporary content to the user. Toasts are rendered as a separate surface that can be dismissed by
user action or a application timeout. Toasts are typically used in the following situations:
A Toast displays temporary content to the user. Toasts are rendered as a separate surface that can be dismissed by
user action or an application timeout. Toasts are typically used in the following situations:

- Update the user on the status of a task
- Display the progress of a task
Expand All @@ -13,7 +13,7 @@ is simply a layout component.

> ⚠️ In order for notifications that use toast to be fully accessible, developers should make the notifications
> available on a permanent surface too. One of the ways to do this in an application is to implement a notification
> centre.
> center.

For live region debugging help, check our [Debugging Notifications](./?path=/docs/concepts-developer-accessibility-notification-debugging--docs) docs page.

Expand All @@ -23,7 +23,7 @@ For live region debugging help, check our [Debugging Notifications](./?path=/doc

- Configure defaults on the Toaster
- Use the toast for non-critical messages
- Let the user view the toast content in the application after the toast dismissed
- Let the user view the toast content in the application after the toast is dismissed
- Create a keyboard shortcut to move focus to actionable toasts
- Use `politeness` setting to differentiate urgent and non-urgent messages

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ ToastLifecycle.parameters = {
'documentation examples. The lifecycle stages are:',
'',
'- queued - The toast is queued until it can be made visible',
'- visible - The toast is mounted and rendered, this is instance if the toast limit is not reached',
'- visible - The toast is mounted and rendered, this is instant if the toast limit is not reached',
'- dismissed - The toast is visually invisible but still mounted',
'- unounted - The toast has been completely unmounted and no longer exists',
'- unmounted - The toast has been completely unmounted and no longer exists',
'',
'Use the `onStatusChange` option when dispatching a toast to listen to lifecycle changes.',
].join('\n'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ ToastPositions.parameters = {
docs: {
description: {
story: [
'Toasts can be dispatched to all four corners of a page. We do not recommend to use more than one',
'Toasts can be dispatched to all four corners of a page. We do not recommend using more than one',
'position for toasts in an application because that could be disorienting for users. Pick',
'one desired position and configure it in the `Toaster`.',
].join('\n'),
Expand Down