Skip to content

Fix motion slot documentation: replace backdrop={null} with backdropMotion={null}#35754

Open
Copilot wants to merge 2 commits intomasterfrom
copilot/fix-motion-examples-docs
Open

Fix motion slot documentation: replace backdrop={null} with backdropMotion={null}#35754
Copilot wants to merge 2 commits intomasterfrom
copilot/fix-motion-examples-docs

Conversation

Copy link
Contributor

Copilot AI commented Feb 17, 2026

The "Disable Motion" story incorrectly demonstrated backdrop={null} (removes backdrop entirely) instead of backdropMotion={null} (disables backdrop animation). Users following the DialogSurface docs link couldn't find examples of disabling motion without removing the backdrop.

Changes

  • Example 2: Changed from backdrop={null} to backdropMotion={null} alongside surfaceMotion={null} to show disabling all motion while preserving the backdrop
  • Example 3 (new): Isolated backdropMotion={null} example showing backdrop animation disabled with surface animation intact
  • Description: Explicitly names motion slots and parent components (surfaceMotion on Dialog, backdropMotion on DialogSurface)

Examples now demonstrate

// Example 1: Disable surface scale only
<Dialog surfaceMotion={null}>
  <DialogSurface>...</DialogSurface>
</Dialog>

// Example 2: Disable all motion, backdrop still rendered
<Dialog surfaceMotion={null}>
  <DialogSurface backdropMotion={null}>...</DialogSurface>
</Dialog>

// Example 3: Disable backdrop fade only
<Dialog>
  <DialogSurface backdropMotion={null}>...</DialogSurface>
</Dialog>

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • storybook.js.org
    • Triggering command: /opt/hostedtoolcache/node/22.22.0/x64/bin/node /opt/hostedtoolcache/node/22.22.0/x64/bin/node /home/REDACTED/work/fluentui/fluentui/node_modules/.bin/storybook dev (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Related Issue(s)

Co-authored-by: mainframev <14054752+mainframev@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix documentation issue with motion examples and slots Fix motion slot documentation: replace backdrop={null} with backdropMotion={null} Feb 17, 2026
Copilot AI requested a review from mainframev February 17, 2026 11:45
@github-actions
Copy link

Pull request demo site: URL

@mainframev mainframev marked this pull request as ready for review February 17, 2026 12:58
@mainframev mainframev requested review from a team as code owners February 17, 2026 12:58
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.

[Docs]: Disabling motion in the Dialog component

2 participants