Skip to content

Commit

Permalink
Ensure dark colors are always used in tutorials overview hero (#899)
Browse files Browse the repository at this point in the history
Resolves: rdar://137430837
  • Loading branch information
mportiz08 authored Oct 9, 2024
1 parent 0b380ed commit bc2d4bc
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/components/TutorialsOverview/Hero.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,19 @@ export default {

.hero {
@include breakpoint-content;

@media screen {
// ensure dark colors are always used, regardless of the selected
// light/dark/auto color scheme preference
//
// unfortunately the order of the property declaration matters here due
// to the way that some properties refer to others, which is why both the
// light and the dark vars are included here, even though the dark ones
// override the light ones...
@include color-vars-light;
@include color-vars-dark;
}

padding-bottom: rem(80px);
padding-top: rem(80px);
}
Expand Down

0 comments on commit bc2d4bc

Please sign in to comment.