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 :)

@LexpearthaLexpeartha self-assigned this Mar 5, 2023
@netlify

netlifyBot commented Mar 5, 2023

Copy link
Copy Markdown

Deploy Preview for friendly-lamington-fb5690 ready!

NameLink
🔨 Latest commita6cb032
🔍 Latest deploy loghttps://app.netlify.com/sites/friendly-lamington-fb5690/deploys/642321620d4ebf0008ede308
😎 Deploy Previewhttps://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
CollaboratorAuthor

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?

@danielroedanielroe changed the title fix: animation component not workingfix: add <div> wrapper around animationMar 28, 2023
@danielroedanielroe changed the title fix: add <div> wrapper around animationfix: add <div> wrapper around animation slotMar 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 mainMar 28, 2023
@danielroe
danielroe deleted the fix-animation-component branch March 28, 2023 17:22
@github-actionsgithub-actionsBot mentioned this pull request Jun 26, 2026
Sign up for freeto 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

@Lexpeartha@danielroe