Skip to content

Commit a8ab978

Browse files
committed
Fixes icon styles so they display properly
fix(patternkit.jsoneditor.js)
1 parent 16deb6c commit a8ab978

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

js/patternkit.jsoneditor.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
* @external jQuery
88
*
99
* @external JSONEditor
10+
*
11+
* @todo .editor-shadow-injection-target .card all: initial
1012
*/
1113

1214
(function ($, Drupal) {
@@ -35,8 +37,9 @@
3537
icons_element.id = "icon_stylesheet";
3638
icons_element.href = drupalSettings.patternkitEditor.iconStylesheet;
3739
document.getElementsByTagName('head')[0].appendChild(icons_element);
40+
editor_dom += '<link rel="stylesheet" id="icon_stylesheet" href="' + drupalSettings.patternkitEditor.iconStylesheet + '">';
3841
}
39-
editor_dom += '<div id="editor_holder"></div>';
42+
editor_dom += '<div id="editor_holder" style="all: initial"></div>';
4043
shadow.innerHTML += editor_dom;
4144

4245
var data = {};

0 commit comments

Comments
 (0)