Skip to content

Ban sx atrribute in all pigment components and skip compilation #45085

@povilass

Description

@povilass

Summary

Migrating from v4 -> v5 has been a rollercoaster migrating makestyles to styled that introduced SX 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 over SX 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

Metadata

Metadata

Assignees

Labels

scope: systemThe system, the design tokens / styling foundations used across components. eg. @mui/system with MUIsupport: questionCommunity support but can be turned into an improvement.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions