Skip to content

fix: add <div> wrapper around animation slot#271

Merged
danielroe merged 6 commits into
mainfrom
fix-animation-component
Mar 28, 2023
Merged

fix: add <div> wrapper around animation slot#271
danielroe merged 6 commits into
mainfrom
fix-animation-component

Conversation

@Lexpeartha

Copy link
Copy Markdown
Collaborator

Fixes #270

After playing around, it seems that for some reason slots can't be detected as reference elements anymore, so I had to add div wrapper for it. Not sure if this has some implications that I'm unaware of, but now it works like it used to :)

@Lexpeartha Lexpeartha requested a review from danielroe March 5, 2023 09:53
@Lexpeartha Lexpeartha self-assigned this Mar 5, 2023
@netlify

netlify Bot commented Mar 5, 2023

Copy link
Copy Markdown

Deploy Preview for friendly-lamington-fb5690 ready!

Name Link
🔨 Latest commit a6cb032
🔍 Latest deploy log https://app.netlify.com/sites/friendly-lamington-fb5690/deploys/642321620d4ebf0008ede308
😎 Deploy Preview https://deploy-preview-271--friendly-lamington-fb5690.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@Lexpeartha Lexpeartha marked this pull request as ready for review March 8, 2023 14:13
@danielroe

Copy link
Copy Markdown
Collaborator

Thank you! ❤️

Do you think there's any way we can add a test for this?

@Lexpeartha

Copy link
Copy Markdown
Collaborator Author

The only thing that comes to my mind as even remotely possible solution is to write e2e test that presses the button, and then after the duration of the animation it checks the styles of element. Although that may be a bit too hacky, what do you think?

@danielroe danielroe changed the title fix: animation component not working fix: add <div> wrapper around animation Mar 28, 2023
@danielroe danielroe changed the title fix: add <div> wrapper around animation fix: add <div> wrapper around animation slot Mar 28, 2023
@danielroe

danielroe commented Mar 28, 2023

Copy link
Copy Markdown
Collaborator

Made a couple of changes as I'm guessing that moving createAnimation earlier was because of a type issue. If not, let me know; we can easily restore the change you made in this PR.

@danielroe danielroe merged commit c4493be into main Mar 28, 2023
@danielroe danielroe deleted the fix-animation-component branch March 28, 2023 17:22
@github-actions github-actions Bot mentioned this pull request Jun 26, 2026
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.

fix: animations in the playground not working

2 participants