Skip to content

[docs] Document BASE_UI_ANIMATIONS_DISABLED - #5544

Open
smrifat1411 wants to merge 2 commits into
mui:masterfrom
smrifat1411:docs-animations-disabled
Open

[docs] Document BASE_UI_ANIMATIONS_DISABLED#5544
smrifat1411 wants to merge 2 commits into
mui:masterfrom
smrifat1411:docs-animations-disabled

Conversation

@smrifat1411

Copy link
Copy Markdown

Closes #4313.

BASE_UI_ANIMATIONS_DISABLED is used throughout the library's own tests (test/setupVitest.ts) and read in useAnimationsFinished, but it wasn't documented anywhere, so people writing tests against Base UI had no way to find it.

This adds a Disabling animations in tests section to the Animation handbook page covering:

  • what the flag actually does — skips the wait for animations to finish, so the deferred work runs immediately
  • setting it from a Vitest / Jest setup file
  • declaring the global for TypeScript
  • setting it in Playwright via addInitScript, since it has to exist before the app scripts run
  • the limit: it disables Base UI's internal waiting, not your CSS transitions and animations

Docs-only, no source changes.

@pkg-pr-new

pkg-pr-new Bot commented Aug 19, 2026

Copy link
Copy Markdown

commit: 12975f0

@code-infra-dashboard

code-infra-dashboard Bot commented Aug 19, 2026

Copy link
Copy Markdown

Bundle size

Bundle Parsed size Gzip size
@base-ui/react 0B(0.00%) 0B(0.00%)

Details of bundle changes

Performance

Total duration: 1,027.76 ms -66.25 ms(-6.1%) | Renders: 92 (+0) | Paint: 1,720.44 ms -111.25 ms(-6.1%)

Test Duration Renders
Tooltip mount (300 contained roots) 34.06 ms 🔺+8.98 ms(+35.8%) 10 (+0)

14 tests within noise — details


Check out the code infra dashboard for more information about this PR.

@netlify

netlify Bot commented Aug 19, 2026

Copy link
Copy Markdown

Deploy Preview for base-ui ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 12975f0
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/6a85ed7940f5cc00082617ed
😎 Deploy Preview https://deploy-preview-5544--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

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.

Documentation for BASE_UI_ANIMATIONS_DISABLED

1 participant