Skip to content

bug: validator on aria-invalid="false" should not be considered as invalid #3855

@Tony-Truand

Description

@Tony-Truand

Reproduction URL (Required)

https://play.tailwindcss.com/8sipSXXXYU

What version of daisyUI are you using?

5.0.28

Which browsers are you seeing the problem on?

Chrome

Describe your issue

According to aria-invalid attribute, if the value is "false" there is no error (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-invalid#false)

The fix can be changing line 14 of https://github.com/saadeghi/daisyui/blob/master/packages/daisyui/src/components/validator.css for
&[aria-invalid]:not([aria-invalid=false])

I'll be happy to help fixing it as a first commit

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions