Skip to content
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

[SvgIcon] Rename nativeColor -> htmlColor #14863

Merged
merged 1 commit into from
Mar 14, 2019

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

@@ -55,7 +55,7 @@ function LatestVersions(props) {
variant="body2"
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.

@@ -18,7 +18,7 @@ export default function textToHash(text, unique = {}) {
// eslint-disable-next-line no-useless-escape
.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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants