-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
Ban sx atrribute in all pigment components and skip compilation #45085
Comments
Can you give some example of these cases. We could put it on the docs to benefit other people too. |
You can do it even now without any changes in the library. In Pigment's config, pass |
@siriwatknp The reason is that junior and middle developers do not read docs. They usually work with the try-fail method. For example, in the map function,n you will get an error for no reason on SX because of compile time
But if you use
@brijeshb42 yes you can but the is a problem with another task with typography in v7 color property will be eliminated and we can only apply color through sx. Will not be supported But this is for another discussion. |
Then please open another issue since you can disable |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note @povilass How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
Summary
Migrating from v4 -> v5 has been a rollercoaster migrating
makestyles
tostyled
that introducedSX
property and made life easier.Migrating from v5 -> v6 is still unclear how to workaround some cases of the dynamic context of styling and introduced unwanted experiences for developers (for middle, junior level developers mostly) on how to work with
SX
property. Most cases can be solved using component + styled + classes combination overSX
which is better and clearer how to do it.Examples
No response
Motivation
It would be nice to disable this feature if possible and choose a proper styling method for consistency throughout the application. I do not think, that
SX
is the future of styling and probably it will shift in v7 or v8 material release again.Note: disabled, only for pigment components, not emotion for easy migration.
Search keywords: sx, not the future
The text was updated successfully, but these errors were encountered: