Skip to content

Commit

Permalink
style: add z-index and remove pointer events to avoid bug when multip…
Browse files Browse the repository at this point in the history
…le tooltips are overlapped
  • Loading branch information
cg-blackbird committed Oct 21, 2024
1 parent fb1793d commit d903f75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "blackbird/hyva-tooltip",
"version": "1.0.3",
"version": "1.0.4",
"authors": [
{
"name": "Blackbird Agency",
Expand Down
4 changes: 2 additions & 2 deletions src/view/frontend/tailwind/components/common.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
@layer components {
[blackbird-tooltip] {
@apply hidden max-w-[min(100%,19rem)] absolute top-0 left-0 bg-secondary text-secondary py-1 px-2 rounded
opacity-0 transition-opacity;
pointer-events-none opacity-0 transition-opacity z-20;
&[show] {
@apply opacity-100;
@apply pointer-events-auto opacity-100;
}
[arrow] {
@apply absolute w-2.5 h-2.5 bg-inherit -z-10 pointer-events-none rotate-45;
Expand Down

0 comments on commit d903f75

Please sign in to comment.