Skip to content

Commit

Permalink
docs(v-hover): improve visibility in dark mode (#12216)
Browse files Browse the repository at this point in the history
  • Loading branch information
kentaro84207 committed Sep 13, 2020
1 parent 1ae9506 commit a611f94
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Expand Up @@ -10,6 +10,7 @@
>
<v-card
:elevation="hover ? 16 : 2"
:class="{ 'on-hover': hover }"
class="mx-auto"
height="350"
max-width="350"
Expand All @@ -31,6 +32,7 @@
>
<v-card
:elevation="hover ? 16 : 2"
:class="{ 'on-hover': hover }"
class="mx-auto"
height="350"
max-width="350"
Expand All @@ -43,3 +45,10 @@
</v-col>
</v-row>
</template>

<style lang="sass" scoped>
.v-card.on-hover.theme--dark
background-color: rgba(#FFF, 0.8)
>.v-card__text
color: #000
</style>
8 changes: 8 additions & 0 deletions packages/docs/src/examples/v-hover/usage.vue
Expand Up @@ -10,6 +10,7 @@
>
<v-card
:elevation="hover ? 12 : 2"
:class="{ 'on-hover': hover }"
height="200"
max-width="350"
class="mx-auto"
Expand Down Expand Up @@ -44,3 +45,10 @@
}),
}
</script>

<style lang="sass" scoped>
.v-card.on-hover.theme--dark
background-color: rgba(#FFF, 0.8)
>.v-card__text
color: #000
</style>

0 comments on commit a611f94

Please sign in to comment.