From edd5b4284904092dba66e01b61cf3bd9c282f398 Mon Sep 17 00:00:00 2001 From: ionelc Date: Fri, 20 Jan 2023 11:07:18 +0200 Subject: [PATCH 1/2] change help menu markdown to ul with li --- coral-component-shell/src/scripts/ShellHelp.js | 4 +++- coral-component-shell/src/styles/help/index.styl | 1 + coral-component-shell/src/templates/help.html | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/coral-component-shell/src/scripts/ShellHelp.js b/coral-component-shell/src/scripts/ShellHelp.js index 9e05f0e978..81edcf2b9a 100644 --- a/coral-component-shell/src/scripts/ShellHelp.js +++ b/coral-component-shell/src/scripts/ShellHelp.js @@ -90,7 +90,9 @@ class ShellHelp extends BaseComponent(HTMLElement) { const selector = `#${this.id} > a[is="coral-shell-help-item"], coral-shell-help-separator`; Array.prototype.forEach.call(this.querySelectorAll(selector), (item) => { - this._elements.items.appendChild(item); + var listItem = document.createElement('li'); + listItem.appendChild(item); + this._elements.items.appendChild(listItem); }); } diff --git a/coral-component-shell/src/styles/help/index.styl b/coral-component-shell/src/styles/help/index.styl index 688bfd3512..769cc5c767 100644 --- a/coral-component-shell/src/styles/help/index.styl +++ b/coral-component-shell/src/styles/help/index.styl @@ -38,6 +38,7 @@ $shell-loading-spacing = 16px; ._coral-Shell-help-items { padding: 3px 0; + margin: 0; } ._coral-Shell-help-result-item { diff --git a/coral-component-shell/src/templates/help.html b/coral-component-shell/src/templates/help.html index 44147ea863..9d470f967a 100644 --- a/coral-component-shell/src/templates/help.html +++ b/coral-component-shell/src/templates/help.html @@ -4,7 +4,7 @@
-
+