Skip to content
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

Fix NavMenu Icon for Compatibility with CiviCRM Core 5.77/Font Awesome 6 #435

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

Ben-Ro
Copy link
Contributor

@Ben-Ro Ben-Ro commented Oct 8, 2024

General

I couldn't find any specific contribution guidelines for this project, so I did my best to address this issue. If I missed any steps or requirements, just let me know :)

This PR addresses issue #434 with the NavMenu icon in the CiviBanking extension after upgrading to CiviCRM Core ^5.77. The recent upgrade introduced a major change in Font Awesome, shifting from version 4 to version 6, which deprecated several older class names, including fa fa-btc.

Changes Made

Utilized the crm-i wrapper for Font Awesome, as recommended in the CiviCRM developer documentation to maintain compatibility with future updates.

Testing

Manually verified that the NavMenu icon is displayed correctly after applying these changes on our CiviCrm System (attached screenshot)
image

…ome 6

- Utilized the `crm-i` wrapper to future-proof icon usage.

Signed-off-by: ben-ro <[email protected]>
@ufundo
Copy link

ufundo commented Oct 14, 2024

+1 for this. Even before the version upgrade, any use of Font Awesome in CiviCRM should use crm-i to avoid clashes with CMS implementations.

Worth noting there's a wider icon palette available with the update, so on 5.77+ you could also use e.g. https://fontawesome.com/icons/building-columns?f=classic&s=solid

In the long run generally good to update to v6 icon names to a) avoid the need for loading the v4 shim; b) allow users to opt out of the "brand" icons, like fa-btc.

@MarcMichalsky
Copy link
Contributor

I can confirm that this works perfectly well! Thanks @Ben-Ro!

@bjendres bjendres added this to the CiviBanking 1.2 milestone Jan 17, 2025
@bjendres bjendres merged commit 37d3647 into Project60:master Jan 17, 2025
@bjendres
Copy link
Member

Thanks @Ben-Ro and @MarcMichalsky, will be released soon

@jensschuppe
Copy link
Collaborator

Worth noting there's a wider icon palette available with the update, so on 5.77+ you could also use e.g. https://fontawesome.com/icons/building-columns?f=classic&s=solid

👍 for replacing the Bitcoin icon with the bank icon btw, although it's kind of appealing because of the common initial letter.

@bjendres
Copy link
Member

👍 for replacing the Bitcoin icon with the bank icon btw, although it's kind of appealing because of the common initial letter.

I liked the Bitcoin-Icon...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants