Provide a general summary of the issue here
i am trying to style a RAC TextField with tailwind, and using the RAC tailwindcss plugin.
this works for the disabled: and invalid: variants, but not for read-only: and required:.
see this reproduction repo, which renders the following (the first two don't apply colored border, the last two do):
<TextField className="grid" isReadOnly>
<Label>Check readonly</Label>
<Input className="border-2 read-only:border-sky-600" name="check-readonly" />
</TextField>
<TextField className="grid" isRequired>
<Label>Check required</Label>
<Input className="border-2 required:border-pink-600" name="check-required" />
</TextField>
<TextField className="grid" isDisabled>
<Label>Check disabled</Label>
<Input className="border-2 disabled:border-purple-600" name="check-disabled" />
</TextField>
<TextField className="grid" isInvalid>
<Label>Check invalid</Label>
<Input className="border-2 invalid:border-red-600" name="check-invalid" />
</TextField>
my guess is that Input/TextArea needs to add these as data- attributes here?
🤔 Expected Behavior?
see above
😯 Current Behavior
see above
💁 Possible Solution
No response
🔦 Context
No response
🖥️ Steps to Reproduce
see repo linked to above
Version
RAC 1.1.1
What browsers are you seeing the problem on?
Firefox
If other, please specify.
No response
What operating system are you using?
linux
🧢 Your Company/Team
No response
🕷 Tracking Issue
No response
Provide a general summary of the issue here
i am trying to style a RAC
TextFieldwith tailwind, and using the RAC tailwindcss plugin.this works for the
disabled:andinvalid:variants, but not forread-only:andrequired:.see this reproduction repo, which renders the following (the first two don't apply colored border, the last two do):
my guess is that
Input/TextAreaneeds to add these asdata-attributes here?🤔 Expected Behavior?
see above
😯 Current Behavior
see above
💁 Possible Solution
No response
🔦 Context
No response
🖥️ Steps to Reproduce
see repo linked to above
Version
RAC 1.1.1
What browsers are you seeing the problem on?
Firefox
If other, please specify.
No response
What operating system are you using?
linux
🧢 Your Company/Team
No response
🕷 Tracking Issue
No response