by @dpschen fix: respect .dark class instead of prefers-color-scheme
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
Adrian Simmons 2021-11-16 18:01:42 +00:00
parent bbf8074285
commit 347a77f11b
1 changed files with 6 additions and 5 deletions

View File

@ -2,6 +2,7 @@
<modal
@close="close()"
variant="scrolling"
class="task-detail-view-modal"
>
<a @click="close()" class="close">
<icon icon="times"/>
@ -60,11 +61,11 @@ export default {
color: var(--dark);
}
}
</style>
/* Close icon SVG uses currentColor, change the color to keep it visible */
@media (prefers-color-scheme: dark) {
.close {
color: var(--grey-900);
}
<style lang="scss">
// Close icon SVG uses currentColor, change the color to keep it visible
.dark .task-detail-view-modal .close {
color: var(--grey-900);
}
</style>