Skip to content

bug: in swap component the swap-active class is not responsive for rotate and flip #4553

Description

@pdanpdan

Reproduction URL (Required)

https://play.tailwindcss.com/kAGatzn9ol?file=css

What version of daisyUI are you using?

No response

Which browsers are you seeing the problem on?

All browsers

Describe your issue

swap-active is very nice because it allows controlling the swap state from external checkbox with peer or group

But it only works as expected as long as opacity is concerned, for swap-rotate and swap-flip it does not work.

This is a suggestion to make it also work for these 2, as long as at least one of swap-active and swap-rotate|swap-flip is not responsive.

Check part commented with 'HERE'
https://play.tailwindcss.com/kAGatzn9ol?file=css

The issue was identified when trying to control a collapse status from a toggle with swap inside the collapse-title

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions