iachat/app/javascript/dashboard/components-next
Sivin Varghese 30996140a3
fix: Show "not-allowed" cursor for disabled buttons (#10986)
# Pull Request Template

## Description

Fixed an issue where hover styles were still applied to disabled
buttons. Previously, `disabled:pointer-events-none` was used to prevent
interactions, ensuring hover styles wouldn’t apply. However, this also
removed showing the "not-allowed" cursor. This has been replaced with
`hover:enabled` to ensure hover effects only apply when the button is
enabled while preserving proper cursor behavior.

## Type of change

- [x] Bug fix (non-breaking change which fixes an issue)

## How Has This Been Tested?

### **Screen recording**

**Before**


https://github.com/user-attachments/assets/a5d33869-4d9d-499b-94c8-6371cbb44ecc


**After**


https://github.com/user-attachments/assets/a03d93dc-2374-4c76-8bed-8f1fe79593d2


**Case where `disabled:pointer-events-none` and `hover:enabled` are not
added (for context only).**



https://github.com/user-attachments/assets/407320d8-f889-49d2-a78c-a5d24ed745a0




## Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [ ] I have commented on my code, particularly in hard-to-understand
areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream
modules
2025-02-27 17:54:40 +05:30
..
avatar revert: Next bubble improvements (#10795) 2025-01-29 20:04:45 -08:00
banner feat: Add frontend changes for Captain limits (#10749) 2025-01-24 09:21:09 -08:00
breadcrumb feat(v4): Add new contact details screen (#10504) 2024-12-03 21:29:47 -08:00
button fix: Show "not-allowed" cursor for disabled buttons (#10986) 2025-02-27 17:54:40 +05:30
Campaigns feat: Support bigger font size in dashboard (#10974) 2025-02-27 12:10:33 +05:30
captain feat: Support bigger font size in dashboard (#10974) 2025-02-27 12:10:33 +05:30
colorpicker feat: Update button component (#10362) 2024-10-29 14:00:24 +05:30
combobox fix: ComboBox filtering delay in contact merge search (#10968) 2025-02-25 17:21:43 +05:30
Contacts feat: Support bigger font size in dashboard (#10974) 2025-02-27 12:10:33 +05:30
Conversation/ConversationCard fix: sentry issues (#10695) 2025-01-16 15:49:48 +05:30
copilot feat: add prompt suggestions and June events (#10726) 2025-01-21 22:52:42 +05:30
CustomAttributes feat(v4): Add new contact details screen (#10504) 2024-12-03 21:29:47 -08:00
dialog feat: update colors for v4 (#10660) 2025-01-15 17:13:03 +05:30
dropdown-menu fix: links rendering in sidebar profile (#10574) 2024-12-11 17:42:46 -08:00
Editor chore: Improve new conversation form (#10687) 2025-01-15 13:10:09 +05:30
filter chore: Fix issues with Contact pages (#10544) 2024-12-05 14:24:10 -08:00
flag feat: Flag icon component (#10564) 2024-12-10 11:53:24 +05:30
HelpCenter feat: Support bigger font size in dashboard (#10974) 2025-02-27 12:10:33 +05:30
icon fix: logo and custom branding (#10930) 2025-02-19 14:22:25 -08:00
Inbox fix: v4 ui issues (#10652) 2025-01-08 18:17:50 +05:30
inline-input feat: Add compose conversation components (#10457) 2024-12-05 16:31:47 -08:00
input feat: Updates on new components (#10444) 2024-11-20 20:21:35 +05:30
Label chore(v4): Update colors (#10700) 2025-01-16 15:27:23 +05:30
message fix: Incorrect translation in contact merge modal and resolve z-index issue (#10943) 2025-02-20 22:01:36 -08:00
NewConversation feat: Support bigger font size in dashboard (#10974) 2025-02-27 12:10:33 +05:30
pagination feat: Support bigger font size in dashboard (#10974) 2025-02-27 12:10:33 +05:30
phonenumberinput feat: Support bigger font size in dashboard (#10974) 2025-02-27 12:10:33 +05:30
selectmenu feat: Add the new select menu component (#10445) 2024-11-19 14:25:45 -08:00
sidebar feat: Support bigger font size in dashboard (#10974) 2025-02-27 12:10:33 +05:30
spinner feat: Add Spinner to new components (#10303) 2024-10-16 17:53:46 -07:00
switch feat: Support bigger font size in dashboard (#10974) 2025-02-27 12:10:33 +05:30
tabbar feat: Update button component (#10362) 2024-10-29 14:00:24 +05:30
taginput feat(v4): Compose a new conversation from a phone number. (#10568) 2024-12-17 18:07:58 +05:30
textarea chore: Improve new conversation form (#10687) 2025-01-15 13:10:09 +05:30
CardLayout.vue feat: Updates on new components (#10444) 2024-11-20 20:21:35 +05:30
EmptyStateLayout.vue feat: Support bigger font size in dashboard (#10974) 2025-02-27 12:10:33 +05:30