Skip to content

docs: Fix import order for GitLab CSS bundle

Related to (and possibly a fix for) #523 (closed)

Currently storybook renders same gitlab-ui styles several times, this is normally not a big problem. Except we use those styles, their <style> tag, to add the custom gitlab css below.

This means that the GitLab styles get incorrectly overriden by gitlab-ui leading to having a wrong possibly wrong preview.

Before

css order is incorrect problem is not revealed
Screen_Shot_2020-04-02_at_3.07.43_PM image

After

css order is correct problem is revealed 🙅
Screen_Shot_2020-04-02_at_3.04.34_PM image

Related discussion

gitlab!27654 (comment 310122737)

Edited by 🤖 GitLab Bot 🤖

Merge request reports