kirbydesign / designsystem

Kirby Design System
https://cookbook.kirby.design
MIT License
82 stars 22 forks source link

[BUG] Disabled form inputs should not react to hover and click #3424

Closed KemalPajevic closed 3 months ago

KemalPajevic commented 3 months ago

Describe the bug

If you have a kirby-input that is disabled, there will still be a hover effect when the mouse cursor is hovered over it, meaning it will change the color and the cursor will change as well. Additionally, a disabled input still reacts to a mouse click, activating the "flashing" effect of the kirby-input.

Describe how to reproduce the bug

  1. Add a disabled kirby-input like this <input kirby-input disabled />
  2. Hover the mouse over it.
  3. Se that the color changes and the cursor as well.
  4. Click the input.
  5. See that the color flashes.

Which Kirby version was used?

9.3.2

What was the expected behavior?

The disabled inout doesn't react to hover and click

Add any screenshots

Screenshot 2024-03-21 at 10 14 20

Please complete the following information:


Checklist:

The following tasks should be carried out in sequence in order to follow the process of contributing correctly.

Verification

To make sure the bug is not intended behaviour; it should be verified by a member of team Kirby before moving on to implementation.

Implementation

The contributor who wants to implement this issue should:

Review

Once the issue has been implemented and is ready for review: