-
Notifications
You must be signed in to change notification settings - Fork 842
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
Alter id
on EuiFormRow
wrapping element
#2588
Conversation
Any concern that there's now no way to pass an ID to Also, does this constitute a breaking change? (Someone could be expecting the ID on either element to do some hacky things...) |
I agree with @myasonik, I think we should keep an id on the form row but append |
I can work on Option 2 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤞 This doesn't make updating Kibana a huge pain...
Snapshot changes in Kibana appear to be all additions, so that's good. Any functional test failures caused by this will point towards places where |
id
from EuiFormRow
wrapping elementid
on EuiFormRow
wrapping element
Summary
Work in #2569 highlights a case where
EuiFormRow
can improperly render multiple elements with the sameid
. This only happens when anid
is directly passed toEuiFormRow
(id
remains part of...rest
). Regardless, the cloned child form control is the intended target for theid
, not the wrapping element.Options:
id
from the wrapping element entirely(what I've currently done)id
(e.g.,${id}-row
) so the wrapping element is still referencable (what's currently done)I think it's likely that comprehensive axe analysis would find more than just the one case highlighted in #2569, especially in Kibana.
Checklist
- [ ] Checked in dark mode- [ ] Checked in mobile- [ ] Checked in IE11 and Firefox- [ ] Props have proper autodocs- [ ] Added documentation examples- [ ] Checked for accessibility including keyboard-only and screenreader modes