Skip to content

bug: Diff component not working inside Card #4416

@t-lecoublet

Description

@t-lecoublet

Reproduction URL (Required)

https://play.tailwindcss.com/mWr6VLF5Fq

What version of daisyUI are you using?

5.5.17

Which browsers are you seeing the problem on?

Firefox, Chrome, Other

Describe your issue

Description:
The diff component does not render correctly when placed inside a card component. The issue appears to be caused by a conflict between the layer utilities, where the card layer overrides the properties of the diff layer.

Expected behavior:
The diff component should render correctly inside a card, just as it does outside of it.

Actual behavior:
The diff component is broken when inside a card (the slider and comparison functionality doesn't work).

Possible solution:
This might be resolved by adjusting the layer utility priorities or ensuring the diff component's styles take precedence when needed.

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