material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

[icons] Add the "Emergency" icon

Open Justin-Luo opened this issue 11 months ago • 10 comments

Steps to reproduce

Link to live example: (required)

Steps: 1. 2. 3.

Current behavior

No response

Expected behavior

No response

Context

No response

Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: emergency, icon

Justin-Luo avatar Mar 25 '24 19:03 Justin-Luo

emergency something like this ?

CelestialWorthy avatar Mar 28 '24 00:03 CelestialWorthy

@CelestialWorthy no, this one from Material Icons

emergency_FILL0_wght400_GRAD0_opsz24

https://fonts.google.com/icons?selected=Material+Symbols+Outlined:emergency:FILL@0;wght@400;GRAD@0;opsz@24&icon.query=emergency

Justin-Luo avatar Mar 28 '24 22:03 Justin-Luo

What is the naming convention for the icons? I saw that material icons contain svg icons so do i just import it there ?

CelestialWorthy avatar Apr 02 '24 09:04 CelestialWorthy

on another note , do you think it is possible to add car logos as icons ?

CelestialWorthy avatar Apr 02 '24 09:04 CelestialWorthy

Following up, is this something that can be added soon?

Justin-Luo avatar Apr 08 '24 16:04 Justin-Luo

@danilo-leal does your PR add the Emergency icon specifically?

https://fonts.google.com/icons?icon.set=Material+Icons&selected=Material+Icons+Outlined:emergency:&icon.query=emergency

Justin-Luo avatar Apr 23 '24 15:04 Justin-Luo

@Justin-Luo It should've been added, but looking back again, it doesn't seem like it has 🤔 I've seen other instances (https://github.com/mui/material-ui/issues/39874) where the script to update the Material Icons wasn't picking up every new icon available there. Any pointers @siriwatknp or @michaldudak?

danilo-leal avatar Apr 24 '24 18:04 danilo-leal

The icon @Justin-Luo linked to is from Material Symbols, not Material Icons. Our library mirrors Material Icons, which doesn't contain the Emergency icon. If you'd like it to, please open an issue in the Material Icons repo.

michaldudak avatar Apr 30 '24 09:04 michaldudak

🤨 The icon he's linking is from Material Icons, though, not from Symbols. That's why I thought it should've been picked up.

https://fonts.google.com/icons?selected=Material%20Icons%20Outlined%3Aemergency%3A

danilo-leal avatar Apr 30 '24 09:04 danilo-leal

Sorry, I saw just the first link :/ The icons download script has a list of seemingly random exclusions (https://github.com/mui/material-ui/blob/next/packages/mui-icons-material/scripts/download.mjs#L14). I never fully understood the pattern here. I think it's safe to remove the emergency icon from this list and run the scripts again.

michaldudak avatar Apr 30 '24 12:04 michaldudak