Skip to content

bug: Button Link and Ghost hover states persisting on mobile devices #3888

Description

@sulimanbenhalim

Reproduction URL (Required)

https://daisyui.com/components/button/#buttons-ghost-and-button-link

What version of daisyUI are you using?

5.0.35

Which browsers are you seeing the problem on?

Safari iOS, Chrome

Describe your issue

The link button (btn-link) and ghost button (btn-ghost) remain "stuck" in hover state after being touched on iOS Safari and other mobile browsers. After tapping the buttons:

  • Link buttons retain their underline
  • Ghost buttons stay in their hover state with changed background/colors

Image

This persists until tapping elsewhere on the screen to reset them.

This is similar to the issue #3817 which was fixed for soft, outline, and dash buttons in PR #3820, but the solution needs to be applied/improved for link and ghost buttons as well.

You can assign this to me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions