Material-ui: [icons] Missing Material Design icons

Created on 3 Jun 2020  路  11Comments  路  Source: mui-org/material-ui

The SupportAgent (https://material.io/resources/icons/?icon=support_agent) icon does not seem to be avaible in @material-ui/icons 4.9.1

  • [x] The issue is present in the latest release.
  • [x] I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 馃槸

import SupportAgentIcon from '@material-ui/icons/supportAgent' Module not found: Can't resolve '@material-ui/icons/supportAgent' or import { SupportAgent } from '@material-ui/icons' Attempted import error: 'SupportAgent' is not exported from '@material-ui/icons'

Expected Behavior 馃

The icon should be imported

Steps to Reproduce 馃暪

https://codesandbox.io/s/xenodochial-rubin-5jerc?fontsize=14&hidenavigation=1&theme=dark

Your Environment 馃寧

| Tech | Version |
| ----------- | ------- |
| Material-UI | v4.10.1 |
| Material-UI-Icons | v4.9.1 |

enhancement good to take icons

All 11 comments

@twltwl It looks like Google has added some new icons, so the package needs a fresh build.

@twltwl Do you want to work on it? :)

yarn
cd packages/material-ui-icons
rm legacy/CastForEducation.js
rm legacy/CastForEducationOutlined.js
rm legacy/CastForEducationRounded.js
rm legacy/CastForEducationSharp.js
rm legacy/CastForEducationTwoTone.js
rm legacy/StarRate.js
rm legacy/StarRateOutlined.js
rm legacy/StarRateRounded.js
rm legacy/StarRateSharp.js
rm legacy/StarRateTwoTone.js
yarn src:download
yarn src:icons
git commit -am "[icons] Synchronize icons with Google"
cd ../..
yarn docs:icons

?

@mbrookes Right, we would also need to look at the synonyms for the search on the documentation. I can already see one 馃槅 https://material.io/resources/icons/?search=wash&icon=wash&style=baseline

@oliviertassinari @mbrookes I can take this, but wanted to check with you on one thing. The new dump of icons from Google no longer contains the "Motorcycle" icon that is currently being used in the production package (it only contains "TwoWheeler" with a synonym "motorcycle"). Should it be moved to the legacy folder to avoid a breaking change?

@alecananian Thanks for looking into it. I can understand why Google removed the motocycle icon, the icon itself isn't their best work and has a narrower use case. Adding a synonym would be great. I'm leaning towards adding a fallback but that re export the two wheeler icon with a message that ask users to change the import.

Landed here because I'm not seeing the icons "pending" and "pending_actions".

@Kizmar it will be solved in #21498.

Landed here because I'm not seeing the icons "pending" and "pending_actions".

Nor the pull request linked directly above your comment apparently. 馃槈

@mbrookes My apologies; I should have just thumbed up the OP and left it at that. Didn't mean to irritate.

Not irritated, just couldn't resist 馃榿

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TimoRuetten picture TimoRuetten  路  3Comments

sys13 picture sys13  路  3Comments

pola88 picture pola88  路  3Comments

ghost picture ghost  路  3Comments

rbozan picture rbozan  路  3Comments