Skip to content

Conversation

@oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Mar 13, 2019

Breaking change

React solved the same problem with the for HTML attribute, they have decided to call the prop htmlFor. This change follows the same reasoning: https://reactjs.org/docs/dom-elements.html#htmlfor.

-<AddIcon nativeColor={secondary.contrastText} />
+<AddIcon htmlColor={secondary.contrastText} />

I have batched two small changes to the documentation as bonuses

@oliviertassinari oliviertassinari added breaking change Introduces changes that are not backward compatible. component: SvgIcon The React component. labels Mar 13, 2019
color="secondary"
rel="nofollow"
href="https://next.material-ui.com/"
href="https://next--material-ui.netlify.com/"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.replace(/[!@#\$%\^&\*\(\)=_\+\[\]{}`~;:'"\|,\.<>\/\?\s]+/g, '-')
.replace(/-+/g, '-')
.replace(/-$/g, ''),
.replace(/^-|-$/g, ''),
Copy link
Member Author

@oliviertassinari oliviertassinari Mar 13, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mui-pr-bot
Copy link

Details of bundle changes.

Comparing: a74b020...7bf49bc

bundle parsed diff gzip diff prev parsed current parsed prev gzip current gzip
@material-ui/core -0.00% 0.00% 362,768 362,764 92,403 92,404
@material-ui/core/Paper 0.00% 0.00% 68,878 68,878 20,172 20,172
@material-ui/core/Paper.esm 0.00% 0.00% 63,340 63,340 19,264 19,264
@material-ui/core/Popper 0.00% 0.00% 30,458 30,458 10,566 10,566
@material-ui/core/styles/createMuiTheme 0.00% 0.00% 17,284 17,284 5,703 5,703
@material-ui/core/useMediaQuery 0.00% 0.00% 2,471 2,471 1,036 1,036
@material-ui/lab -0.00% -0.00% 170,726 170,722 50,110 50,108
@material-ui/styles 0.00% 0.00% 57,220 57,220 16,216 16,216
@material-ui/system 0.00% 0.00% 17,041 17,041 4,489 4,489
Button 0.00% 0.00% 91,218 91,218 26,957 26,957
Modal 0.00% 0.00% 90,263 90,263 26,728 26,728
colorManipulator 0.00% 0.00% 3,232 3,232 1,298 1,298
docs.landing 0.00% 0.00% 51,908 51,908 11,302 11,302
docs.main -0.00% 0.00% 648,034 648,033 201,660 201,664
packages/material-ui/build/umd/material-ui.production.min.js -0.00% 0.00% 311,223 311,219 85,394 85,394

Generated by 🚫 dangerJS against 7bf49bc

@oliviertassinari oliviertassinari marked this pull request as ready for review March 13, 2019 00:36
@oliviertassinari oliviertassinari merged commit 89ebedc into mui:next Mar 14, 2019
@oliviertassinari oliviertassinari deleted the html-breaking-change branch March 14, 2019 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking change Introduces changes that are not backward compatible. component: SvgIcon The React component.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants