-
Notifications
You must be signed in to change notification settings - Fork 558
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: preserve bound media query styles when converting builder to mitosis #1644
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 78d5015 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
'responsiveStyles.small.left': 'state.left', | ||
'responsiveStyles.small.top': 'state.top', | ||
'responsiveStyles.large.color': 'state.color', | ||
'style.fontSize': 'state.fontSize', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to show that the presence of responsiveStyles.
doesn't interfere with other styles bound using style.
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 78d5015. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 4 targetsSent with 💌 from NxCloud. |
Description
https://builder-io.atlassian.net/browse/ENG-7491
Bound media query styles are not preserved when converting Builder to Mitosis. This PR addresses the problem by ensuring that bound media query styles are included in the Mitosis node when bound using
responsiveStyles.[SIZE].[CSS PROP]
.Make sure to follow the PR preparation steps in CONTRIBUTING.md before submitting your PR:
yarn fmt:prettier
.yarn test:update
yarn g:changeset
and follow the CLI instructions. Alternatively, use the Changeset Github Bot to create the file.