Skip to content

docs(react-toast): fix copy defects in the Toast stories and overview - #37135

Open
Jake Salvesen (jakesalvesen) wants to merge 2 commits into
microsoft:masterfrom
jakesalvesen:docs/toast-story-copy
Open

Jake Salvesen (jakesalvesen) wants to merge 2 commits into
microsoft:masterfrom
jakesalvesen:docs/toast-story-copy

Conversation

@jakesalvesen

@jakesalvesen Jake Salvesen (jakesalvesen) commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Previous Behavior

The Toast story descriptions and the Toast overview page had typos and punctuation defects in 19 lines across 12 files. Examples are overriden, unounted, will will, A Toasts displays, a missing space before politeness, and two code spans, after dispatchToast and around dismissAllToasts, that were never closed.

New Behavior

The same text with those fixed. Only description strings and the overview Markdown change. There is no code, behavior or API change.

  • Spelling: unounted, toats, overriden (twice), a duplicated will, and colour and centre, which were the only British spellings in the Toast stories.
  • Wording: remove data sources to remote data sources (the story's own code comment says state/remote data), this is instance to this is instant, can be define to can define, a toasts to a toast, dismiss to the toast to dismiss the toast, recommend to use to recommend using, A Toasts displays to A Toast displays, a application to an application, and after the toast dismissed to after the toast is dismissed.
  • Markup: closed the backticks after dispatchToast and dismissAllToasts, because an unclosed backtick renders as a literal backtick. Added the missing space before politeness, and removed a stray space before a period and a double space. Added the space after > in the Intent note, which renders the same either way.

Not changed:

  • Both sentences of the Intent note stay in one blockquote, which is how they render today.
  • Terminal punctuation is inconsistent across the descriptions. Normalizing it is an editorial decision, so I left it.

No change file is needed. @fluentui/react-toast-stories is private and only stories change.

prettier --check and react-toast-stories:lint pass.

Related Issue(s)

None. I found these in a copy review of the package.

@jakesalvesen
Jake Salvesen (jakesalvesen) force-pushed the docs/toast-story-copy branch 2 times, most recently from 2e50bd9 to c97742c Compare November 12, 2026 04:38
@jakesalvesen Jake Salvesen (jakesalvesen) changed the title docs(react-toast): fix copy defects in the Toast story descriptions docs(react-toast): fix copy defects in the Toast stories and overview Nov 20, 2026
@jakesalvesen

Copy link
Copy Markdown
Contributor Author

Update: I had missed a second unclosed backtick, in DismissAll.stories.tsx, and four typos in the overview page, ToastDescription.md. Both are fixed in the push above. I also shortened the description to the PR template. The branch is rebased onto current master.

Seventeen copy defects across ten story files, all in the text users read on the docs site. No behavior changes.

Misspellings and duplicated words:

- `unounted` for `unmounted` in the lifecycle stages
- `will will play` in PauseAndPlay
- `toats` for `toasts` in DismissToast
- `overriden` twice, in DefaultToastOptions and Intent
- British spelling of `color` in Intent, since the docs are US English
- `remove` for `remote` in ProgressToast, in "any state or remote data sources"

Malformed sentences:

- `this is instance if the toast limit is not reached` for `this is instant if`
- `Developers can be define a shortcut` for `can define`
- `a toasts in a single position` for `a toast`
- `dismiss to the toast` for `dismiss the toast`
- `We do not recommend to use` for `We do not recommend using`

Punctuation:

- `visible toast . This example`, a space before the period
- `>intent determines`, missing the space after the blockquote marker
- `the`politeness` option`, missing the space before the inline code
- `using `dispatchToast` had no closing backtick, so the code span ran to the end of the line
- `with a  `ToastTrigger``, a double space before the inline code in DismissToastWithAction

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block the Toast documentation copy and Markdown cleanup.

No open issues 🎉

What changed in this PR

This PR corrects copy and Markdown formatting in Fluent UI v9 Toast documentation. Changes are limited to story descriptions and the overview; component behavior and APIs remain unchanged.

Changes:

  • Fix spelling, grammar, duplicated words, and spacing.
  • Close code spans around dispatchToast and dismissAllToasts.
  • Standardize “color” and “center” to American English.
File Description
packages/​react-components/​react-toast/​stories/​src/​Toast/​ToastPositions.stories.tsx Correct recommendation wording.
packages/​react-components/​react-toast/​stories/​src/​Toast/​ToastLifecycle.stories.tsx Correct lifecycle description typos.
packages/​react-components/​react-toast/​stories/​src/​Toast/​ToastDescription.md Fix overview grammar and spelling.
packages/​react-components/​react-toast/​stories/​src/​Toast/​ProgressToast.stories.tsx Correct remote-data and dismissal wording.
packages/​react-components/​react-toast/​stories/​src/​Toast/​PauseAndPlay.stories.tsx Remove duplicated “will.”
packages/​react-components/​react-toast/​stories/​src/​Toast/​Offset.stories.tsx Correct “a toasts” to “a toast.”
packages/​react-components/​react-toast/​stories/​src/​Toast/​Intent.stories.tsx Fix spelling and Markdown spacing.
packages/​react-components/​react-toast/​stories/​src/​Toast/​FocusKeyboardShortcut.stories.tsx Correct grammar and punctuation spacing.
packages/​react-components/​react-toast/​stories/​src/​Toast/​DismissToastWithAction.stories.tsx Remove a double space.
packages/​react-components/​react-toast/​stories/​src/​Toast/​DismissToast.stories.tsx Correct “toats” to “toasts.”
packages/​react-components/​react-toast/​stories/​src/​Toast/​DismissAll.stories.tsx Close the dismissAllToasts code span.
packages/​react-components/​react-toast/​stories/​src/​Toast/​DefaultToastOptions.stories.tsx Fix “overridden” and close the dispatchToast code span.

Review effort: Balanced

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants