-
Notifications
You must be signed in to change notification settings - Fork 903
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
Added Line Awesome icon font to on icon picker field #3342
Conversation
I just checked this.. even thought it does show the lineawesome icons on the editor but the stored values are still fa and fas not |
Indeed, they would never be stored as Even if you set Supported by theirs website documentation:
|
…fa` before showing the icon on icon picker
@pxpm I did some changes, so I replace This is possible because line awesome provides a font with the same naming as font awesome ( |
Ugh now that's just sad 😞😅 Now that I hear about it, it does make perfect sense to have line awesome inside the icon picker - especially if you use the backpack interface for both users and admins... Any way we can make it a "supported font"?
|
@tabacitu it appears we commented at the same time 😅 just check my previous comment if you missed out. Yesterday I though about pushing a PR to add this font, but the project seems a little idle, the latest commit was 2 years ago and there are some issues and PR open. |
The inspection completed: No new issues |
if($field['iconset'] === 'lineawesome') { | ||
$value = preg_replace("/^la(.) la/", 'fa$1 fa', $value); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm i'm pretty sure this work, yes. But... if feels a bit like hardcoding it, doesn't it?
It makes me wonder - what happens with the other fonts? Metronic definitely doesn't use the "fa fa-x" syntax so... I'm weary of merging a solution that will make this field work one way for line-awesome and a different way for all other fields.
I think it'll make it more difficult to maintain down the line. And more difficult to read and understand.
So yes it's a solution 😀 But I don't think it's the solution we're looking for 😅
What if we fix this upstream? Any way we can do that? Please see my latest comment in the thread, just posted.
Hmm that's right. I see you've already contributed the project a few years ago 😀 🎉 Let's do this:
I'm really hoping we can have a "proper" fix for this, not a hack 🤞 |
@tabacitu I agree it's a messy code and we should avoid it. It was kinda a smart move to try to use the flavor of line awesome with the prefix of font awesome, but I forgot the part of saving it 😅 |
As @mpixelz stated on #3339, since backpack adopted line awesome font on v4, it should be available to be used on icon picker field.