diff --git a/core/src/core-api/dom-elements.js b/core/src/core-api/dom-elements.js index 07c9f40ad8..0d6ed2e8e9 100644 --- a/core/src/core-api/dom-elements.js +++ b/core/src/core-api/dom-elements.js @@ -109,6 +109,18 @@ class LuigiElements { getCurrentMicrofrontendIframe() { return IframeHelpers.getCurrentMicrofrontendIframe(); } + + /** + * Returns a navigation footer container. + * @returns {HTMLElement} the navigation footer DOM element + * @memberof Elements + * @since NEXTRELEASE + * @example + * Luigi.elements().getNavFooterContainer(); + */ + getNavFooterContainer() { + return document.getElementsByClassName('lui-side-nav__footer')[0]; + } } export const elements = new LuigiElements(); diff --git a/core/src/navigation/LeftNav.svelte b/core/src/navigation/LeftNav.svelte index 0dd1b82c44..f3fa5bc7a8 100644 --- a/core/src/navigation/LeftNav.svelte +++ b/core/src/navigation/LeftNav.svelte @@ -816,8 +816,10 @@ {#if footerText || semiCollapsibleButton}