Skip to content

Commit

Permalink
fix(core): ignore pointer events for disabled button
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Aug 12, 2024
1 parent ef7e6f1 commit 301b35e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions projects/core/components/button/button.style.less
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
outline: none;
color: inherit;

&[disabled]:not(._loading) {
pointer-events: none;
}

&[data-shape='rounded'] {
border-radius: 6.25rem;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,8 @@
animation: rotating 1.5s linear infinite;
}
}

button:hover,
a:hover {
outline: 2px solid var(--tui-accent-hover);
}

0 comments on commit 301b35e

Please sign in to comment.