-
Notifications
You must be signed in to change notification settings - Fork 841
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
EuiForm should render to form
#2272
Comments
@snide Looks like you built this to render a |
I think Otherwise it's just a quirky artifact that is odd, but mostly harmless. I generally advise to let improper naming quirks live, but that's certainly skewed by not wanting to go through the conversion effort. One way we could help is just by adding an additional prop that turns it into a form. |
Thanks for the explanation @snide - I think you are right and the benefits of this breaking change don't justify the effort. One suggestion: The examples (e.g. https://elastic.github.io/eui/#/forms/form-layouts ) should wrap |
It took me a while to realize that |
One possible solution is to create another component, e.g. |
@snide should i start working on
|
@anishagg17 Sure. Following convention I'd use a |
What is the use case for See also #4416 |
Yep, we understand, it's a legacy piece of code that would be a major breaking change if we changed the default. You can change it with |
Not what I wanted to hear but completely understandable, all breaking changes cost something. However, at the same time, this raises new concerns for me; I don't want import features, like accessibility, to be blocked by technical debt/cost from existing adopters. I choose EUI because it's "Accessible to everyone" so, regardless of the default element, I suggest adding the aria role as a minor bump Just FYI, the use of Yeah, I knew I'd fall for it a few times so one of the first things I did when I adopted EUI was create a component wrapper that used |
Thanks for feedback! It's really great to hear that folks outside of Elastic are choosing EUI because accessibility is one of it's primary goals. Unfortunately, we're a small team and can't tackle everything. You can see a whole swath of a11y issues that we're aware of and would like to get to but haven't had the capacity to address. We're constantly getting better though so keep these issues coming (PRs too, if you can!) and we'll keep moving forward. |
Thank you for your candour, and for you and your team's great work! I know my comments and issues probably come across as gripes but I assure you that I'm not trying to be mean. I love EUI and want to see it get the attention it deserves. Thank you for your patience, everyone ❤ |
Currently the
EuiForm
component renders adiv
as container element. This is slightly confusing, I would have expected it to render an html<form>
element, soonSubmit
onEuiForm
works:The text was updated successfully, but these errors were encountered: