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

Expose Font Awesome icons to core icon API #27

Closed
laryn opened this issue May 7, 2024 · 4 comments · Fixed by #28
Closed

Expose Font Awesome icons to core icon API #27

laryn opened this issue May 7, 2024 · 4 comments · Fixed by #28

Comments

@laryn
Copy link
Member

laryn commented May 7, 2024

This PR does the same for the Bootstrap Icons module and should be pretty straightforward to adapt for Font Awesome:

@yorkshire-pudding
Copy link
Collaborator

Thanks @laryn - happy to accept a PR or I will try and get to this sometime soon.

@laryn
Copy link
Member Author

laryn commented May 8, 2024

@yorkshire-pudding Sure, I'll try to prepare a PR for your review.

@laryn
Copy link
Member Author

laryn commented May 8, 2024

@yorkshire-pudding Ready for review. This is locally with Icon Browser:

font-awesome-in-icon-browser.mp4

@yorkshire-pudding
Copy link
Collaborator

Thanks @laryn

I've tested this and it looks great.

I don't think it is related to this PR, but I'm getting warnings on the icon browser page when I click an icon:

Warning: Undefined global variable $theme_key in _icon_from_theme() (line 137 of /app/docroot/core/includes/icon.inc).
Warning: Undefined array key "" in _icon_from_theme() (line 158 of /app/docroot/core/includes/icon.inc).

Seems to also happen for clicking on core icons so I've opened a ticket in the icon browser repo - backdrop-contrib/icon_browser#12

I'll probably wait until the 1.28.0 release to merge and release this

Many thanks

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

Successfully merging a pull request may close this issue.

2 participants