Skip to content

Commit bc2d4bc

Browse files
authored
Ensure dark colors are always used in tutorials overview hero (#899)
Resolves: rdar://137430837
1 parent 0b380ed commit bc2d4bc

File tree

1 file changed

+13
-0
lines changed
  • src/components/TutorialsOverview

1 file changed

+13
-0
lines changed

src/components/TutorialsOverview/Hero.vue

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,19 @@ export default {
7575
7676
.hero {
7777
@include breakpoint-content;
78+
79+
@media screen {
80+
// ensure dark colors are always used, regardless of the selected
81+
// light/dark/auto color scheme preference
82+
//
83+
// unfortunately the order of the property declaration matters here due
84+
// to the way that some properties refer to others, which is why both the
85+
// light and the dark vars are included here, even though the dark ones
86+
// override the light ones...
87+
@include color-vars-light;
88+
@include color-vars-dark;
89+
}
90+
7891
padding-bottom: rem(80px);
7992
padding-top: rem(80px);
8093
}

0 commit comments

Comments
 (0)