From f6938f6605b7265e968416bbde845977d399ad1d Mon Sep 17 00:00:00 2001 From: Iwona Just Date: Tue, 2 Apr 2024 16:56:17 +0100 Subject: [PATCH 1/2] icon svgs can end with a number --- src/helpers/Cp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/Cp.php b/src/helpers/Cp.php index 20c65580667..657854cd7f3 100644 --- a/src/helpers/Cp.php +++ b/src/helpers/Cp.php @@ -2787,7 +2787,7 @@ public static function iconSvg(string $icon, ?string $fallbackLabel = null): str try { // system icon name? - if (preg_match('/^[a-z\-]+$/', $icon)) { + if (preg_match('/^[a-z\-]+(\d?)$/', $icon)) { $path = match ($icon) { 'asterisk-slash', 'diamond-slash', 'element-card', 'element-card-slash', 'element-cards', 'graphql', 'grip-dots', 'image-slash', 'list-flip', 'list-tree-flip', 'share-flip' => From 65f21488ebd8ac1fff2870ff14ad197729f22631 Mon Sep 17 00:00:00 2001 From: brandonkelly Date: Tue, 2 Apr 2024 15:10:43 -0700 Subject: [PATCH 2/2] Release note [ci skip] --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 933c6fed08a..bf543cb3611 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ - Fixed a bug where the `_includes/nav.twig` template wasn’t marking nested nav items as selected. ([#14735](https://github.com/craftcms/cms/pull/14735)) - Fixed issues with menu options’ hover styles. - Fixed a bug where double-clicking on an element’s linked label or action button would cause its slideout to open, in addition to the link/button being activated. ([#14736](https://github.com/craftcms/cms/issues/14736)) +- Fixed a bug where system icons whose names ended in numbers weren’t displaying. ([#14740](https://github.com/craftcms/cms/issues/14740)) ## 5.0.0 - 2024-03-26