iachat/app/javascript/dashboard
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
..
api feat: Allow users to see heatmap for last 30 days (#10848) 2025-02-19 14:54:15 -08:00
assets feat: Support bigger font size in dashboard (#10974) 2025-02-27 12:10:33 +05:30
components feat: Support bigger font size in dashboard (#10974) 2025-02-27 12:10:33 +05:30
components-next fix: Show "not-allowed" cursor for disabled buttons (#10986) 2025-02-27 17:54:40 +05:30
composables feat: Support bigger font size in dashboard (#10974) 2025-02-27 12:10:33 +05:30
constants feat: Add visibility checks for installation types (#10773) 2025-02-21 14:48:31 -08:00
helper feat: Support bigger font size in dashboard (#10974) 2025-02-27 12:10:33 +05:30
i18n feat: Support bigger font size in dashboard (#10974) 2025-02-27 12:10:33 +05:30
mixins chore: fix circleci on vite build (#10214) 2024-10-07 15:27:41 +05:30
modules feat: Support bigger font size in dashboard (#10974) 2025-02-27 12:10:33 +05:30
routes feat: setup eslint for vue-i18n (#10889) 2025-02-27 16:53:57 +05:30
store feat: Allow users to see heatmap for last 30 days (#10848) 2025-02-19 14:54:15 -08:00
App.vue feat: Support bigger font size in dashboard (#10974) 2025-02-27 12:10:33 +05:30
featureFlags.js feat: Add visibility checks for installation types (#10773) 2025-02-21 14:48:31 -08:00