-
Notifications
You must be signed in to change notification settings - Fork 7
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
Feature/mui v5 #270
Feature/mui v5 #270
Conversation
Azure Static Web Apps: Your stage site is ready! Visit it here: https://green-glacier-08aae7903-270.westeurope.azurestaticapps.net |
Discoveries:
We can style components like
or
we can style components directly with the |
Azure Static Web Apps: Your stage site is ready! Visit it here: https://green-glacier-08aae7903-270.westeurope.azurestaticapps.net |
Azure Static Web Apps: Your stage site is ready! Visit it here: https://green-glacier-08aae7903-270.westeurope.azurestaticapps.net |
Add splash screen component and everything for it
tweaks: splash screen improvements
Azure Static Web Apps: Your stage site is ready! Visit it here: https://green-glacier-08aae7903-270.westeurope.azurestaticapps.net |
Azure Static Web Apps: Your stage site is ready! Visit it here: https://green-glacier-08aae7903-270.westeurope.azurestaticapps.net |
Azure Static Web Apps: Your stage site is ready! Visit it here: https://green-glacier-08aae7903-270.westeurope.azurestaticapps.net |
Azure Static Web Apps: Your stage site is ready! Visit it here: https://green-glacier-08aae7903-270.westeurope.azurestaticapps.net |
Azure Static Web Apps: Your stage site is ready! Visit it here: https://green-glacier-08aae7903-270.westeurope.azurestaticapps.net |
This PR
Closes #269
This PR represents the migration of our library from Material-UI.4 to Mui.5.
The considerations taken during the development:
experimental_sx
and customprops
only for the styled component, without an "internal" state.Component.styled.ts
, and are imported likeimport ComponentStyled from "./Component.styled.ts
.componentProps
is not existent as part of the theme anymore. Therefore, it is not included anymore in the given theme. Does anybody use those "componentProps" from the Material-UI.4 theme?$
when referencing a child class. For example, if before we would have&$checked
now it would be& .Mui-checked
. The difference between&.Class
and& .Class
is--
&.Class
styles the component that it is attached to. For example, if the classes would be "Class1 Class", it would style the element that also "Class1" has.--
& .Class
styles the children components with the given class. It can be used also like& span
.--
& + .Class
styles are the sibling elements of the given element with the provided class.sx
prop exists on all(?) the MuI components and takes care of creating dynamic classes. It feels like astyle
prop, but enhanced. If applied to the component, we can use finst.backgroundColor: 'primary.main;
. If this way of accessing the pallete values are not wrapped in a sort ofsx
, then it won't work. For example if we use a StyledComponent and want to uselightGrey.main
within it, we need to leverage theexperimental_sx
from "@mui/system".To be explored:
Questions, considerations?
The package can be found under
"@dhi/react-components-lab": "1.13.2-MUIv5.beta.0"
.