-
Notifications
You must be signed in to change notification settings - Fork 71
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
[UX] Update menu popover positioning to be consistent with Help menu #30
Comments
Thanks for the great bug report, this looks like something that was missed during the latest UI updates for version 2.0.0. |
I've looked a bit more at this, and there's something pretty subtle going on. It only happens on some pages, and only to the right-most element. I'll need to take a closer look at the EUI source code. |
Hi @joshuarrrr , I was taking a look of this issue yesterday. It did happen only to the right-most tag, even though I've tried to specify the |
@opensearch-project/transfer-request Can we get this issue moved to the OUI project? |
I'd seen a similar behavior in another tooltip lib. There this was a soft requirement based on the position of the tooltip, so that the tooltip was always visible. So if the tooltip ever wen outside the viewport, it switched to another mode to make sure it was visible. Might just be the same thing under the hood. |
Sounds like we may need to add some padding to the base component so the help icon doesn't run up against the edge of the viewport. That will likely cause the tool-tip to show up in the correct place. |
Just throwing this out there, what's the need to make it consistent in the first place? Looking at a lot of UIs, including the popovers in MacOs and Windows, this behavior is pretty standard. It doesn't even look inconsistent if we think of them as popovers/tooltips. I think we are confusing popovers with drop-down menus, which is a different UI element all together. If the ask here is to change them to be drop down menus, I'm a lil more inclined, but even then I wouldn't prioritize this over some of the more urgent UI fixes we need. Like they say, if it ain't broke |
I'm ok putting a pin on this temporarily. I do think the icon feels a bit too close to the edge though. With that said, eventually clicking help will open a side drawer instead of triggering a popover, so this will be moot. |
Yeah, honestly, I think that hits the nail on the head. 💯 |
I think this is still what bothers me most - we commonly use Context Menu to approximate a dropdown menu, but it's implemented as a popover. This makes it difficult to reason about how to use those components effectively. For example: opensearch-project/OpenSearch-Dashboards#2904 |
Is your feature request related to a problem?
As part of investigating and implementing a new global header, we discovered some minor discrepancies between the popover implementation of the help menu and the user menu:
(this appears to use
anchorPosition="downCenter"
implicitly; however, it appears as if it's positioned asleftUp
)vs
anchorPosition="downRight"
What solution would you like?
@kgcreative would like all menu popovers to display the same, with a preference for them appearing under the menu item. In theory, just explicitly specifying
anchorPosition="downRight"
should be sufficient to match the help menu styling. However, further investigation may be necessary to understand why it's not currently displaying as expected.The text was updated successfully, but these errors were encountered: