-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
Missing icons #12251
Comments
The problem is that the source icon is 20px instead of 24px. You can use SettingsOutlined or SettingsSharp which is the same icon at the correct size. We could perhaps add a workaround to duplicate one of those paths to generate the "Filled" icon from. For the full list of icons that have "incorrect" sizes, see: https://github.com/mui-org/material-ui/blob/master/packages/material-ui-icons/scripts/download.js#L19-L43 |
Seriously, Google, why? |
by the way it is |
The lightbulb icon used on https://material-ui.com/ is also missing. Did Google get rid of it? Seriously? Not found anymore at https://material.io/tools/icons/ |
@henrylearn2rock Yes, it's gone. |
FileUpload is gone as well^ |
@sakulstra I can only find |
and FileDownload too |
@henrylearn2rock FWIW, the lightbulb icons are published in the import LightbulbOutlineIcon from '@material-ui/docs/svgIcons/LightbulbOutline';
import LightbulbFullIcon from '@material-ui/docs/svgIcons/LightbulbFull'; But you might prefer to copy them locally. (Source here: https://github.com/mui-org/material-ui/tree/master/packages/material-ui-docs/src/svgIcons) |
@mbrookes thanks, I'll stay with 1.1.0. Hmmm... why would Google do that to screw us up. |
I realize they made it a full semver major release so things are expected to break but they could have at least pointed to a list of changed icons that were already existing. I too ran into issues with the FileUpload and while it was a very easy fix it's still slightly annoying. |
@JeffBaumgardt I wish we could have make a complete changelog, but with more than 1,000 icons, it's more efficient to offload the effort to our users with issues like this one. Thank you for reporting the pain point. |
v1 icons not included in v2:
v1 icons not included in v2 due to incorrect size (Use other styles):
v2 icons not included due to incorrect size (Use other styles except for StarRate - use Star / StarBorder / StarHalf):
Edit @eps1lon: icons with strike-through are included in the latest version. |
That would have been important to put in a changelog... |
@meetbryce I have added the list to the main PR, and updated the release notes & changelog. |
Just did my first PR (#12356) on Material-UI. I am not sure if I did it right or not. Please let me know if I need to adjust some things. |
BTW, as those are SVGs, we don't really care about the announced size, right? |
@the-question It's very brave from you to work on improve the fetch logic. Unfortunately, it won't help with #12251. The SvgIcon set the viewbox to 0 0 24 24. We need the source path to follow this same convention. Right now, I see 3 options:
I have sorted the options by my order of preference. |
I did a quick test with the Settings icon (baseline one, which is 20x20). I applied the following transformation to the SVG (temp0 is the for(i = 0; i < temp0.children.length; i++) {
temp0.children.item(i).setAttribute("transform", "translate(2, 2)")
} This goes through every child of the parent Therefore, when setting the viewbox to [0, 0, 24, 24], width and height to 24 afterward, the icon appears centered, but not zoomed, so the original look is preserved. (Using other width/height still works as expected) temp0.setAttribute("viewBox", [0, 0, 24, 24]);
temp0.setAttribute("height", 24);
temp0.setAttribute("width", 24); Ideally, this (the first part, translating childrens) should be applied to the downloaded SVG, before saving it as a file. P.S: I totally agree with your order of preference, but judging by the fact that they still link to a repository which is 3 years out of date, I'd say we may prefer taking the lead on this one. |
@mbrookes Could you mention that |
@bperel thanks - must have somehow missed that in the diff. |
Thanks for that list @mbrookes ! I wonder, where is the changelog located? When upgrading, I checked https://github.com/mui-org/material-ui/releases , but there is nothing mentioned there about a |
@material-ui/icons 1.0.0 + @material-ui/core 3.1.0 seems to work... |
Looked through #12251 (comment) and checked if the icons not included due to size are now included. The following icons are included in the latest version:
|
The eco icons is missing, https://material.io/resources/icons/?search=eco&style=baseline, as reported in #17251. We should be able to manually patch this one. |
Another point of discrepancy here seems to be that google's icon json isn't up to date with material.io's list of icons. |
@oliviertassinari Regarding the manual patch -- currently if the icons script were to be ran after the patch is committed it would remove the patch (because the script references the out of date json). However, it seems other parts of the script are broken as well (404 errors with the current URL path) so can we assume it will be altered in the future before it is ran again? Or at least until google updates there JSON. |
@colemars Here you go: https://fonts.google.com/metadata/icons The json structure has changed though, so you'll have to tweak the script a bit. Also the download URLs are now of the form:
(Note "round" not "rounded") |
Missing icon. import StorefrontIcon from '@material-ui/icons/Storefront';
|
@xiaoyu-tamu Storefront will be in the next release: @material-ui/[email protected]. |
This comment has been minimized.
This comment has been minimized.
I found one here https://iconify.design/icon-sets/mdi/google.html |
There are SettingsApplication and lots of others, but plain "Settings" and variations are missing (it is listed on https://material.io/tools/icons/?icon=settings&style=baseline)
The text was updated successfully, but these errors were encountered: