Skip to content

Conversation

@sascha-kaleidoscode
Copy link

Fix: Correct parameter order in useCssElement call (web)

This fixes a bug in the styled() helper where the arguments to useCssElement were passed in the wrong order. The function expects (component, props, mapping), but we were passing (component, mapping, props) by mistake.

This meant the style mapping was being treated as props, which caused styles to be applied incorrectly. The parameter order is now fixed so everything behaves as intended.

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.

1 participant