Commit 6ab50e97 authored by David O'Regan's avatar David O'Regan

Merge branch 'jnnkl-darkmode-bug-layoutshifts' into 'master'

Fix missing CSS variables in Darkmode

See merge request gitlab-org/gitlab!66640
parents dc6a267a 5609901e
......@@ -32,6 +32,9 @@
- if page_canonical_link
%link{ rel: 'canonical', href: page_canonical_link }
- if user_application_theme == 'gl-dark'
= preload_link_tag(path_to_stylesheet('application_utilities_dark'))
- else
= preload_link_tag(path_to_stylesheet('application_utilities'))
= yield :prefetch_asset_tags
......@@ -40,6 +43,8 @@
= render 'layouts/startup_css', { startup_filename: local_assigns.fetch(:startup_filename, nil) }
- if user_application_theme == 'gl-dark'
= stylesheet_link_tag_defer "application_dark"
= yield :page_specific_styles
= stylesheet_link_tag_defer "application_utilities_dark"
- else
= stylesheet_link_tag_defer "application"
= yield :page_specific_styles
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment