-
Notifications
You must be signed in to change notification settings - Fork 174
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
more granular unparsable prop detection for StyleInfo
#6631
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#15096 Bundle Size — 58.06MiB (~+0.01%).f2db984(current) vs d1d46c1 master#15094(baseline) Warning Bundle contains 70 duplicate packages – View duplicate packages Bundle metrics
Bundle size by type
Bundle analysis report Branch feature/style-info-not-editable-... Project dashboard Generated by RelativeCI Documentation Report issue |
…to feature/style-info-not-editable-property
StyleInfo
StyleInfo
seanparsons
approved these changes
Nov 11, 2024
gbalint
approved these changes
Nov 12, 2024
balazsbajorics
approved these changes
Nov 12, 2024
liady
pushed a commit
that referenced
this pull request
Dec 13, 2024
## Problem The `StyleInfo` type doesn't express the state when a property is set, but it cannot parsed in the desired format. For example, in `style={{ top: '300px', left: theme.left + 50 }}`, `top` can be parsed as a css number, but left cannot be. We need to be able to express this, since some code (`AdjustCssLengthProperties` and `SetCSSLength` for example) need to handle it. Once `AdjustCssLengthProperties` and `SetCSSLength` use this infra, we can make more strategies Tailwind-compatible. ## Fix Extend the `StyleInfo` type, and fix any affected code. **Manual Tests:** I hereby swear that: - [x] I opened a hydrogen project and it loaded - [x] I could navigate to various routes in Play mode
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
The
StyleInfo
type doesn't express the state when a property is set, but it cannot parsed in the desired format. For example, instyle={{ top: '300px', left: theme.left + 50 }}
,top
can be parsed as a css number, but left cannot be.We need to be able to express this, since some code (
AdjustCssLengthProperties
andSetCSSLength
for example) need to handle it. OnceAdjustCssLengthProperties
andSetCSSLength
use this infra, we can make more strategies Tailwind-compatible.Fix
Extend the
StyleInfo
type, and fix any affected code.Manual Tests:
I hereby swear that: