Skip to content

Commit

Permalink
feat(files): color contrast for liked status (#3168)
Browse files Browse the repository at this point in the history
  • Loading branch information
josephmcg authored May 16, 2022
1 parent 99c6bcf commit 3a9951b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions components/views/files/file/File.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
v-if="item.liked || fileHover"
size="1.25x"
class="like"
:class="{liked : item.liked}"
@mouseover="heartHover=true"
@mouseleave="heartHover=false"
/>
Expand Down
5 changes: 4 additions & 1 deletion components/views/files/file/File.less
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@

.like {
float: right;
&.liked {
color: @pink;
}
}

svg:hover {
&:extend(.font-secondary);
opacity: 0.75;
}
}

Expand Down

0 comments on commit 3a9951b

Please sign in to comment.