Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TextArea with aria-invalid="false" is in error state #461

Open
Zenor27 opened this issue Oct 31, 2024 · 0 comments
Open

TextArea with aria-invalid="false" is in error state #461

Zenor27 opened this issue Oct 31, 2024 · 0 comments

Comments

@Zenor27
Copy link

Zenor27 commented Oct 31, 2024

Hello,

I think I found a bug in the TextArea style.

The following component:

<Textarea aria-invalid="false"/>

creates a border-color: red style since it triggers the following css:

@layer recipes {
  @layer _base {
    .xxx-textarea[aria-invalid] {
      border-color: red;
    }
  }
}

I don't think this is the intended behavior. I think the correct css would be:

@layer recipes {
 @layer _base {
   .xxx-textarea[aria-invalid='true'] {
     border-color: red;
   }
 }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant