Add hover on ButtonCircle only when having a clone

This commit is contained in:
2021-11-28 23:08:54 +01:00
parent 89234e6e52
commit 8958362d07
2 changed files with 3 additions and 1 deletions

View File

@@ -12,6 +12,7 @@
const classes = [
className,
...[color, size].map(variant => variant && `${className}--${variant}`),
clone ? 'has-clone' : null,
$$props.class
].join(' ').trim()
</script>

View File

@@ -40,7 +40,7 @@
** States
*/
// Hover
&:not([disabled]):hover {
&.has-clone:not([disabled]):hover {
& > * {
&:first-child {
opacity: 0;
@@ -51,6 +51,7 @@
transform: translate3d(-50%, -50%, 0);
}
}
}
// Disabled