-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discovery/load gcds #2048
Discovery/load gcds #2048
Changes from all commits
5a51fa8
9be4dbb
2eb6615
a1cfc45
2064f84
456354c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,16 @@ | |
{% include 'partials/google-tag-manager-head.html' %} | ||
{% include 'partials/qualtrics-head.html' %} | ||
|
||
<!-- GCDS icons --> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" | ||
crossorigin="anonymous"> | ||
|
||
<!-- GC Design System --> | ||
<link rel="stylesheet" media="screen" href="{{ asset_url('stylesheets/gcds.css') }}" /> | ||
Comment on lines
+15
to
+20
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wonder why we need to load 2 separate CSS files here - it would be nice if these were consolidated. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think they'll be removing fontawesome soon in favour of their own icons. |
||
<script nonce="{{ request_nonce }}" type="module" src="{{ asset_url('javascripts/gcds.esm.js') }}"></script> | ||
|
||
<!-- end GCDS --> | ||
|
||
<link | ||
rel="stylesheet" | ||
media="screen" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thing to note here is that we are likely loading font-awesome twice now. Once here for GCDS, and then again for notify itself.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have our build pipeline to import a subset at least. So some icons will load twice for sure ... 😞