Skip to content

[EuiFormRow] With difficult components #3218

Closed as not planned
Closed as not planned

Description

@myasonik

EuiFormRow passes down the id an input element should take on to wire up EuiFormRow's <label> correctly.

But there are several cases where this breaks down:

  • [EuiFormRow] doesn't always wire up the label and input #3037 describes a case where if the form control isn't built as expected by EuiFormRow and so the id never makes it to the <input />
  • Another issue is what to do if there are multiple <input /> elements (like dual input Range Sliders because you can't have multiple ids on a page
  • Another issue, that's been somewhat hastily solved by the hasChildLabel prop on EuiFormRow, is with wrapped <input /> elements that already have an applied label
  • And, the impetus for making this issue, for the case of a searchable EuiSelectable, the <input /> needs the passed in id but also an associated element (a ul in this case) needs a reverse aria-describedby set to the label's id.

@chandlerprall suggested that this might be solved by somehow using React's context to do all this...

Kind of related to #2493

Activity

  1. cchaos commented on Apr 1, 2020

    @cchaos
    Contributor

    🤔 Interesting idea. Would love to see a POC

  2. myasonik commented on Apr 2, 2020

    @myasonik
    ContributorAuthor

    Yes, @chandlerprall, we would all love to see a POC 😆

  3. changed the title [-]Using [EuiFormRow] with difficult components[/-] [+][EuiFormRow] With difficult components[/+] on Sep 20, 2020
  4. github-actions commented on Mar 20, 2021

    @github-actions

    👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.

  5. added
    stale-issue
    on Mar 20, 2021
  6. removed
    stale-issue
    on Mar 20, 2021
  7. github-actions commented on Sep 17, 2021

    @github-actions

    👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.

  8. added
    stale-issue
    on Sep 17, 2021
  9. added and removed
    stale-issue
    on Sep 17, 2021
  10. github-actions commented on Apr 19, 2023

    @github-actions

    👋 Hi there - this issue hasn't had any activity in 6 months. If the EUI team has not explicitly expressed that this is something on our roadmap, it's unlikely that we'll pick this issue up. We would sincerely appreciate a PR/community contribution if this is something that matters to you! If not, and there is no further activity on this issue for another 6 months (i.e. it's stale for over a year), the issue will be auto-closed.

  11. added
    stale-issue
    on Apr 19, 2023
  12. github-actions commented on Oct 22, 2023

    @github-actions

    ❌ Per our previous message, this issue is auto-closing after having been open and inactive for a year. If you strongly feel this is still a high-priority issue, or are interested in contributing, please leave a comment or open a new issue linking to this one for context.

  13. added
    stale-issue-closed
    on Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    accessibilitystale-issuestale-issue-closed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions