From 1f0b59d659c545265f1fc46ff2438e5e5e00ff36 Mon Sep 17 00:00:00 2001 From: Miguel Rincon Date: Thu, 2 Apr 2020 15:19:44 +0800 Subject: [PATCH 1/2] docs: Fix import order for GitLab CSS bundle --- .storybook/preview-head.pug | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.storybook/preview-head.pug b/.storybook/preview-head.pug index 22e8e8f37a..e65816cfd0 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 gitlabUiStyles = document.querySelector('style[data-gitlab-ui-style]'); + const head = document.querySelector('head'); - gitlabUiStyles.insertAdjacentElement('afterend', linkStylesheet); + head.insertAdjacentElement('beforeend', linkStylesheet); } }); -- GitLab From 0c4009ca6d6ff83dc10dace0a2ceae705624970a Mon Sep 17 00:00:00 2001 From: Miguel Rincon Date: Thu, 2 Apr 2020 13:04:45 +0000 Subject: [PATCH 2/2] Apply suggestion to .storybook/preview-head.pug --- .storybook/preview-head.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.storybook/preview-head.pug b/.storybook/preview-head.pug index e65816cfd0..636bca3166 100644 --- a/.storybook/preview-head.pug +++ b/.storybook/preview-head.pug @@ -29,6 +29,6 @@ script. const head = document.querySelector('head'); - head.insertAdjacentElement('beforeend', linkStylesheet); + head.appendChild(linkStylesheet); } }); -- GitLab