Skip to content

Commit b968b6b

Browse files
authored
Ensure body bg is always dark for tutorials-overview page. (swiftlang#943)
Resolves: rdar://151701111
1 parent c4dbfdb commit b968b6b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/components/TutorialsOverview.vue

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,15 @@ export default {
117117
};
118118
</script>
119119

120+
<style lang="scss">
121+
@import 'docc-render/styles/_core.scss';
122+
123+
// ensure body background is also always dark
124+
body:has(.tutorials-overview) {
125+
--color-text-background: #{dark-color(fill)};
126+
}
127+
</style>
128+
120129
<style scoped lang="scss">
121130
@import 'docc-render/styles/_core.scss';
122131

0 commit comments

Comments
 (0)