Skip to content

Commit

Permalink
[field] Only show RevertChangesButton label on hover (if mouse-device)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuslundgard authored and rexxars committed Oct 6, 2020
1 parent a4fe2e4 commit fd47139
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,13 @@
@nest .iconContainer + & {
margin-left: var(--extra-small-padding);
}

@media (hover: hover) {
opacity: 0;
transition: opacity 100ms;

@nest .root:hover & {
opacity: 1;
}
}
}

0 comments on commit fd47139

Please sign in to comment.