From 83c51eb246ef3d2699e7fb9d1fce4f6b3308e819 Mon Sep 17 00:00:00 2001 From: benjamin Date: Wed, 31 Jul 2024 22:56:02 +0100 Subject: [PATCH] include brand icons --- css/crm-i.css | 2 +- js/jquery/jquery.crmIconPicker.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/css/crm-i.css b/css/crm-i.css index b2fc90d3e991..18c997ceee2c 100644 --- a/css/crm-i.css +++ b/css/crm-i.css @@ -6,7 +6,7 @@ is loaded before fontawesome.css so that .fa-XXX classes can modify it. */ .crm-container .replace-plain:before, .crm-i { display: var(--fa-display, inline-block); - font-family: var(--fa-style-family, "Font Awesome 6 Free"); + font-family: var(--fa-style-family, "Font Awesome 6 Free", "Font Awesome 6 Brands"); font-weight: var(--fa-style, 900); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; diff --git a/js/jquery/jquery.crmIconPicker.js b/js/jquery/jquery.crmIconPicker.js index b6f895f58b54..25a61533c5ec 100644 --- a/js/jquery/jquery.crmIconPicker.js +++ b/js/jquery/jquery.crmIconPicker.js @@ -11,7 +11,7 @@ loaded = $.Deferred(); CRM.$.get(CRM.config.resourceBase + 'bower_components/font-awesome/css/all.css').done(function(data) { var match, - regex = /\.(fa-[-a-zA-Z0-9]+)::before {/g; + regex = /\.(fa-[-a-zA-Z0-9]+):{1,2}before {/g; while((match = regex.exec(data)) !== null) { icons.push(match[1]); }