[react-aria-components] - cannot style parent elements based on Input's data attributes #4770
Unanswered
binaryartifex
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Is something like this what you are trying to accomplish? I've applied a border + background to the input directly for simplicity, styling them and the icon in accordance with the validity state will be much easier once #4616 is released and the textfield wrapper itself has |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
for the life of me i cannot figure out how to style a containing element based on the data attributes of the input component. use case -> icons or buttons that are meant to visually look like they are within the input field.
so the use case here is that the input itself doesnt have a border or a background. its passed to the 'wrapper' class based on the data attribute or validity status of the input field, this is also so contextual styles can be passed to the icon as well. for the life of me i can't figure out how to do it.
Beta Was this translation helpful? Give feedback.
All reactions