Skip to content

Commit 09a4f49

Browse files
committed
Give IconButton the pointer cursor when enabled
1 parent d6db801 commit 09a4f49

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

webview-ui/src/components/chat/IconButton.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export const IconButton: React.FC<IconButtonProps> = ({
2727
"hover:opacity-100 hover:bg-[rgba(255,255,255,0.03)] hover:border-[rgba(255,255,255,0.15)]",
2828
"focus:outline-none focus-visible:ring-1 focus-visible:ring-vscode-focusBorder",
2929
"active:bg-[rgba(255,255,255,0.1)]",
30+
!disabled && "cursor-pointer",
3031
disabled &&
3132
"opacity-40 cursor-not-allowed grayscale-[30%] hover:bg-transparent hover:border-[rgba(255,255,255,0.08)] active:bg-transparent",
3233
className,

0 commit comments

Comments
 (0)