From 9d6ab0637a791c9fded7542bfe1cad86422f7da3 Mon Sep 17 00:00:00 2001 From: Andy Sellick Date: Mon, 12 Aug 2024 12:21:33 +0100 Subject: [PATCH] Fix icons - relying upon glyphicons as part of bootstrap, but the Sass for that doesn't compile properly in dart-sass because it uses `url(font-path(path))` - instead copy the font-face declaration from bootstrap into our code, overridding the original with this one, which fixes the icon paths and the icons - see similar problem fixed in content-tagger: https://github.com/alphagov/content-tagger/pull/1768 --- app/assets/stylesheets/legacy_layout.scss | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/assets/stylesheets/legacy_layout.scss b/app/assets/stylesheets/legacy_layout.scss index 2e3997ac8..c33ae998f 100644 --- a/app/assets/stylesheets/legacy_layout.scss +++ b/app/assets/stylesheets/legacy_layout.scss @@ -23,3 +23,9 @@ @import "legacy/style"; @import "legacy/versions"; @import "legacy/glossary"; + +@font-face { + font-family: "Glyphicons Halflings"; + src: url("bootstrap/glyphicons-halflings-regular.eot"); + src: url("bootstrap/glyphicons-halflings-regular.eot?#iefix") format("embedded-opentype"),url("bootstrap/glyphicons-halflings-regular.woff2") format("woff2"),url("bootstrap/glyphicons-halflings-regular.woff") format("woff"),url("bootstrap/glyphicons-halflings-regular.ttf") format("truetype"),url("bootstrap/glyphicons-halflings-regular.svg#glyphicons_halflingsregular") format("svg") +}