Skip to content

Commit b307e2f

Browse files
committed
style(og-preview): Improve hover state and interaction
Add pointer-events: none to svg and sharing-runner for better UX.
1 parent 97cc7ce commit b307e2f

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

assets/scss/components/_og-preview.scss

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
@apply opacity-100;
1616
}
1717
.sharing-runner {
18-
@apply opacity-0;
18+
@apply opacity-0 pointer-events-none;
1919
}
2020
}
2121
}
@@ -58,6 +58,10 @@
5858
transform: scale(1.1);
5959
background: var(--color-primary-new);
6060
}
61+
62+
svg {
63+
pointer-events: none;
64+
}
6165
}
6266

6367
.dark .social-icon:hover {
@@ -82,12 +86,6 @@
8286
}
8387
}
8488

85-
@screen lg {
86-
.og-preview-wrapper {
87-
@apply mt-6;
88-
}
89-
}
90-
9189
@media (max-width: 1023.98px) {
9290
.og-preview-container:hover {
9391
transform: none;

0 commit comments

Comments
 (0)