Skip to content

[EuiPopover] Are 2 wrapper components necessary? #2022

Closed

Description

@cchaos
<div class="euiPopover">
  <div class="euiPopover__anchor">
    <button />
  </div>
</div>

I remember we were originally positioning the popover with CSS making the anchor wrapper necessary, but is it still?

Activity

  1. snide commented on Jun 11, 2019

    @snide
    Contributor

    Given that the popover itself has inline block, my guess is the __anchor is no longer needed.

  2. thompsongl commented on Jul 10, 2019

    @thompsongl
    Contributor

    It's not needed for layout or style as far as I can tell. However, we use it to host a ref and allow consumers to pass classes directly to it.
    We'd need to do the legwork to verify that any classes currently being passed could stand to be passed instead to the button (or are needed at all).
    We'd also need to update EuiButton to use forwardRef for the default case and indicate that any custom anchor passed to EuiPopover also needs to be able to accept a ref.

  3. cchaos commented on Jul 11, 2019

    @cchaos
    ContributorAuthor

    I just find myself needing a blocked display of the popover and having to give to classes with display: block in order to do so. Always feels so cumbersome. However, I already got so fed up that I just created a prop #2112

  4. cchaos commented on Sep 18, 2020

    @cchaos
    ContributorAuthor

    I'd like to make this a long-term goal. It's something that I continue to fight with constantly. This and the EuiTooltip.

  5. changed the title [-][Question] Are 2 wrapper components necessary with EuiPopover[/-] [+][EuiPopover] Are 2 wrapper components necessary?[/+] on Sep 20, 2020
  6. github-actions commented on Mar 19, 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.

  7. added
    stale-issue
    on Mar 19, 2021
  8. added and removed
    stale-issue
    on Mar 19, 2021
  9. 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.

  10. added
    stale-issue
    on Apr 19, 2023
  11. 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.

  12. added
    stale-issue-closed
    on Oct 22, 2023
  13. cee-chen commented on Oct 23, 2023

    @cee-chen
    Contributor

    I'm going to re-open this as this annoys me personally 😅

  14. added and removed
    stale-issue
    stale-issue-closed
    on Oct 23, 2023
  15. self-assigned this
    on Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions