Skip to content

Commit 07a4808

Browse files
halfninjaCopilot
andcommitted
ID-473 Fix wcag test.
Currently relies on apply-brand setting some LESS variables. No harm in setting them for now, even though they're not used for anything else Co-authored-by: Copilot <copilot@github.com>
1 parent c58ecc6 commit 07a4808

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

less/hp-2025/site.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@import (reference) '../id7.less';
22
@import (reference) 'hp.less';
33

4-
.apply-brand(@brand-colour);
4+
.apply-css-variables(@brand-colour);
55

66
.id7-utility-masthead {
77
background-color: @brand-colour;

less/mixins/branding.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,10 @@
178178
- Mix in the id7-brand-COLOURNAME class in your own build if adding it to the HTML document isn't an option
179179
- If you want to use a custom colour, call .brand-css-variables(COLOR) inside :root
180180
*/
181+
// These are still in here for now for the tests to check .calculate-brand-colours is working correctly,
182+
// but they don't generate output.
183+
@colours: .calculate-brand-colours(@colour);
184+
@link-colour: @colours[@white-emphasis];
181185
}
182186

183187

0 commit comments

Comments
 (0)