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

[Icon] Remove icon ligature "magic" support #9983

Merged
merged 6 commits into from Jan 22, 2018
Merged

[Icon] Remove icon ligature "magic" support #9983

merged 6 commits into from Jan 22, 2018

Conversation

mbrookes
Copy link
Member

@mbrookes mbrookes commented Jan 22, 2018

Also:
Expand use of cloneChildrenWithClassName helper
Standardise some icon prop descriptions

Closes #9968

Breaking change

We have removed the "magic" <Icon> wrapping logic. It should be done explicitly now.
It's making our components less biased around the svg icon vs font icon choice.

+import Icon from 'material-ui/Icon';

-      <IconButton>comment</IconButton>
+      <IconButton>
+        <Icon>comment</Icon>
+      </IconButton>

@mbrookes
Copy link
Member Author

mbrookes commented Jan 22, 2018

Not sure this is strictly "core", but there isn't an obvious catch-all label for cross-component changes.

Expand use of cloneChildrenWithClassName helper
Standardise some icon prop naming
@oliviertassinari oliviertassinari self-assigned this Jan 22, 2018
@oliviertassinari oliviertassinari changed the title [core] Remove icon ligature support [core] Remove icon ligature "magic" support Jan 22, 2018
src/Chip/Chip.js Outdated
*/
deleteIcon: PropTypes.element,
deleteIcon: PropTypes.node,
Copy link
Member

Choose a reason for hiding this comment

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

Given we add an extra class. I'm not convinced it's an API we want to support.

@oliviertassinari oliviertassinari removed their assignment Jan 22, 2018
@oliviertassinari oliviertassinari added the component: Icon The React component. label Jan 22, 2018
@oliviertassinari oliviertassinari changed the title [core] Remove icon ligature "magic" support [Icon] Remove icon ligature "magic" support Jan 22, 2018
@oliviertassinari oliviertassinari merged commit 1d81c68 into mui:v1-beta Jan 22, 2018
@mbrookes mbrookes deleted the core-no-ligatures branch January 22, 2018 22:13
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.

None yet

2 participants