diff --git a/.storybook/preview-head.pug b/.storybook/preview-head.pug index 636bca3166124d75452f95a1507cf710e4880ea2..22e8e8f37a69048c1cc3a006dab7f692a3e288ec 100644 --- a/.storybook/preview-head.pug +++ b/.storybook/preview-head.pug @@ -27,8 +27,8 @@ script. linkStylesheet.setAttribute('rel', 'stylesheet'); linkStylesheet.setAttribute('media', 'all'); - const head = document.querySelector('head'); + const gitlabUiStyles = document.querySelector('style[data-gitlab-ui-style]'); - head.appendChild(linkStylesheet); + gitlabUiStyles.insertAdjacentElement('afterend', linkStylesheet); } });