Skip to content

Severity variants using data-p~= selector instead of data-p-severity= #35

@msazzuhair

Description

@msazzuhair

Description

I am trying to use the severity prop in my Button component (e.g., severity="warn"). However, I noticed that the custom variant selectors refer to data-p~="warn" instead of using data-p-severity="warn" directly. Is this intended behavior for the DX?

You can find the relevant code here.

Environment

  • Package version: tailwindcss-primeui v0.6.1
  • Tools: Volt/Tailwind CSS

Steps to Reproduce

  1. Install tailwindcss-primeui v0.6.1.
  2. Add the class passthrough to the button component (root) using the custom variant p-{severity}.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions