Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(SheetRoot): Reduce transition duration to 0ms in test envs #1186

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

Marcosld
Copy link
Contributor

No description provided.

@Marcosld Marcosld self-assigned this Jul 29, 2024
@Marcosld Marcosld changed the title Reduce transition duration to 0ms in test envs fix(SheetRoot): Reduce transition duration to 0ms in test envs Jul 29, 2024
@Marcosld Marcosld requested review from atabel and pladaria July 29, 2024 10:09
Copy link

Size stats

master this branch diff
Total JS 12 MB 12 MB +47 B
JS without icons 1.98 MB 1.98 MB +47 B
Lib overhead 61.3 kB 61.3 kB 0 B
Lib overhead (gzip) 16.4 kB 16.4 kB 0 B

Copy link

Accessibility report
✔️ No issues found

ℹ️ You can run this locally by executing yarn audit-accessibility.

export const transitionDuration = process.env.NODE_ENV === 'test' ? 0 : 400;
export const transitionDuration = 400;
Copy link
Collaborator

Choose a reason for hiding this comment

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

the problem with this change is now you have a time discrepancy between css and js. This transitionDuration is used in this file too. Can't this cause issues too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

At first glance it should not cause any problems in unit test environment

Copy link

Deploy preview for mistica-web ready!

✅ Preview
https://mistica-qdm6c7h8c-flows-projects-65bb050e.vercel.app

Built with commit 733a0f5.
This pull request is being automatically deployed with vercel-action

@atabel atabel added this pull request to the merge queue Jul 29, 2024
Merged via the queue into master with commit 8d1dec3 Jul 29, 2024
11 checks passed
@atabel atabel deleted the mluis/fix-transition-duration-test-environment-sheet branch July 29, 2024 11:08
tuentisre pushed a commit that referenced this pull request Jul 29, 2024
## [15.16.3](v15.16.2...v15.16.3) (2024-07-29)

### Bug Fixes

* **SheetRoot:** Reduce transition duration to 0ms in test envs ([#1186](#1186)) ([8d1dec3](8d1dec3))
@tuentisre
Copy link
Collaborator

🎉 This PR is included in version 15.16.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants