You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the problem you'd like to see solved or task you'd like to see made easier
I wish to hide the following missing identifier:
My simplest solution for it (using the SVG with JS framework) is to add a class, fa-missing-icon or something, when the icon is missing.
Is this in relation to an existing part of Font Awesome or something new?
It supposed to be really simple and obvious, as the function findIcon() already throws an exception for missing icons.
What is 1 thing that we can do when building this feature that will guarantee that it is awesome?
Only add the class name to the icon, so I could target it through CSS and apply display: none; on it.
Why would other Font Awesome users care about this?
I let users on my website choose their own representing icon, and they may choose a brand icon which uses a different prefix than normal icons. My plan is to generate two icons with the following template: $custom_icon_template_1 = "<i class='fal fa-$custom_icon'></i>"; $custom_icon_template_2 = "<i class='fab fa-$custom_icon'></i>";
and then apply display: none; to the missing icon. That way there will always be a present icon.
On a scale of 1 (sometime in the future) to 10 (absolutely right now), how soon would you recommend we make this feature?
I think this feature is too simple to postpone, but it's just me 😉
Feature request checklist
[ V ] This is a single feature.
[ V ] The title starts with "Feature request: " and is followed by a clear feature name.
Describe the problem you'd like to see solved or task you'd like to see made easier
I wish to hide the following missing identifier:
![missing icon animation](https://camo.githubusercontent.com/f5bb8e5dc2e634ac725acbc1c09284ed3ccb3afdd4192bfbe0ac2d6f9f56f0e9/68747470733a2f2f692e696d6775722e636f6d2f776c796772466b2e676966)
My simplest solution for it (using the SVG with JS framework) is to add a class,
fa-missing-icon
or something, when the icon is missing.Is this in relation to an existing part of Font Awesome or something new?
It supposed to be really simple and obvious, as the function
findIcon()
already throws an exception for missing icons.What is 1 thing that we can do when building this feature that will guarantee that it is awesome?
Only add the class name to the icon, so I could target it through CSS and apply
display: none;
on it.Why would other Font Awesome users care about this?
I let users on my website choose their own representing icon, and they may choose a brand icon which uses a different prefix than normal icons. My plan is to generate two icons with the following template:
$custom_icon_template_1 = "<i class='fal fa-$custom_icon'></i>";
$custom_icon_template_2 = "<i class='fab fa-$custom_icon'></i>";
and then apply
display: none;
to the missing icon. That way there will always be a present icon.On a scale of 1 (sometime in the future) to 10 (absolutely right now), how soon would you recommend we make this feature?
Feature request checklist
The text was updated successfully, but these errors were encountered: