Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

Commit

Permalink
Fix map icons (#2712)
Browse files Browse the repository at this point in the history
Some material icons were being wrongly detected as font-awesome ones
e.g. "fastfood"

Reviewed-on: https://codeberg.org/karrot/karrot-frontend/pulls/2712
Co-authored-by: Nick Sellen <git@nicksellen.co.uk>
Co-committed-by: Nick Sellen <git@nicksellen.co.uk>
  • Loading branch information
nicksellen authored and nicksellen committed Mar 21, 2024
1 parent a194145 commit b63e390
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/maps/components/vectorIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const VectorIcon = Icon.extend({

if (fontIcon) {
const i = document.createElement('i')
if (fontIcon.includes('fa')) {
if (/^fa.? /.test(fontIcon)) {
// Font-awesome icon
// Uses class names
i.className = `${fontIcon} fa-fw`
Expand Down

0 comments on commit b63e390

Please sign in to comment.