Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
theme system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
21 Oct 2025 at 13:33 UTC
Updated:
5 Nov 2025 at 12:24 UTC
Jump to comment: Most recent
In #3517033: Add a style utility API, I realized that it was not possible to reference a library which contains a dot in an icon pack.
Libraries with dot are quite common, so it should be possible.
Declare an icon pack with:
library: core/ckeditor5.alignment
Obtain:
Drupal\Core\Theme\Icon\Exception\IconPackConfigErrorException: ui_suite_bootstrap:bootstrap Error in definition `bootstrap`:[library] Does not match the regex pattern ^\w+/[A-Za-z]+[\w-]*$ in Drupal\Core\Theme\Icon\Plugin\IconPackManager->validateDefinition() (line 430 of core/lib/Drupal/Core/Theme/Icon/Plugin/IconPackManager.php).
Allow dot in the regex
- Update JSON schema
- Add tests.
None
None
None
None
Needed?
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
grimreaperComment #4
gxleano commentedIt looks good to me @grimreaper!!
Comment #5
gxleano commentedComment #7
nod_Committed and pushed adddba60e2b to 11.x and d5fe4c8715d to 11.2.x. Thanks!
Comment #11
grimreaperThanks for the quick merge :)