-
Notifications
You must be signed in to change notification settings - Fork 843
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
EuiFormRow Label Missing Focus Style #826
Comments
Need to chat with @chandlerprall later about how we want to handle this stuff. Essentially |
I realize I gave bad advice on this one. There is in fact an In combonation with I'll post an example in a bit. |
so this is how the react code looks
I was playing around with the component, and I found out adding a
|
Essentially you do a check in your custom component to see if the the prop (this.props.onFocus) is passed down from I'll close this issue once I get some better documentation up that describes the above in the EUI docs directly, but that's definitely the way you should be managing focus with anything custom. |
I passed the same ID to EuiFormRow and the input control, and when I click on the
EuiFormRow
label, it focuses the input, but the label doesn't change to blue. It looks like the EuiFormLabel isn't receiving the focus class when the input field is focused. It's probably due to all the wrapper components in between the EuiFormRow and the form control.The text was updated successfully, but these errors were encountered: