-
-
Notifications
You must be signed in to change notification settings - Fork 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
Add social icons in select-icon interface (#23134) #23223
base: main
Are you sure you want to change the base?
Conversation
|
I wonder if there are any collisions between social icon names and Google Symbol names 🤔 you want to check that or should I have a look? |
I have checked via the following simple script. const isCollision = () => {
const iSocialIcons = socialIcons.map((icon) => icon.toLowerCase());
return icons.flatMap((iconSet) => {
return iconSet.icons.filter((icon) => iSocialIcons.includes(icon.toLowerCase()));
});
}; Duplicated Names: |
Thank you for confirming that! Then I think a possible option is to prefix the social icon with the So the logic update in v-icon to the
|
Thanks for the prefix suggestion! |
Looks like there is some weirdness going on with social icons in the v-icon component and the icon sizes, that is unrelated to this PR, but surfaces just now. @SP12893678 do you want to take a stab at that, otherwise I'll deal with it in a follow up PR. |
Sure! I found it should be set |
Ah.. damn, I think you found a case I did not think about initially. The prefix does not do anything for us, as the social icons always get precedence. So Any smart ideas here? Otherwise I'll give it a think and get back to you. |
@hanneskuettner Lets follow the logic in v-icon for that. As far as I can tell, it'll prioritize the social icons over material icons |
Maybe some user choosed the Google Symbol, but actually display social icon(fontawesome) |
So, to summarize, right now, for duplicated icons between social and google material symbols the user always saw the social icon rendered as those were preferred over the google material icons by default. I don't know if I like that implicit preference and personally would rather make it explicit. We have to solutions:
@rijkvanzanten any preferences here? |
d529591
to
345c919
Compare
Lets go with option number 2 👍🏻 |
8d019b6
to
f50212a
Compare
I have enforced that social icons must include the social prefix in their usage |
Scope
Select icon interface did not provide font-awesome social icon set
What's changed:
Potential Risks / Drawbacks
Review Notes / Questions
Fixes #23134