Skip to content
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

API surface for Tooltip/Callout doesn't allow proper position of beak even with DirectionalHint.bottomLeftEdge #7970

Closed
cliffkoh opened this issue Feb 12, 2019 · 8 comments
Assignees
Labels
Milestone

Comments

@cliffkoh
Copy link
Contributor

Environment Information

  • Package version(s): 6.138
  • Browser and OS versions: all browsers/os

Please provide a reproduction of the bug in a codepen:

https://codepen.io/cliffkoh/pen/OdEqNE?editors=0010

Actual behavior:

image

Expected behavior:

image

@JasonGore
Copy link
Member

JasonGore commented Feb 14, 2019

This is a feature request regarding beak position in certain scenarios where the beak's positioning doesn't particularly align with the target. This CodePen highlights the ask a bit more clearly with a list of Checkboxes with varying content width:

image

This seems to be exacerbated by the amount of Tooltip content, which appears to push the beak even further out:

image

@cliffkoh
Copy link
Contributor Author

Thanks, very good illustration of the existing limitations.

@JasonGore
Copy link
Member

One potential solution is providing an optional target id for either the callout or the beak.

@JasonGore
Copy link
Member

This Codepen offers a couple of fixes making use of Callout's target prop while this issue is investigated.

@brandonthomas
Copy link
Contributor

brandonthomas commented May 17, 2019

Sort of tangential to this, I'm not able to get the beak to slide in the way that I want when I override the width of a Callout when using TeachingBubble. Here I have tried setting width and max width both through CalloutProps and through styles and get the same result. Note that the directional hint is BottomLeftEdge so I'd expect the beak to by on the left side of the callout with the callout slid over to the right a bit.
image

without width props or styles (or any combination thereof) you'll note that the beak is in the same spot:
image

I'm also pretty sure calloutWidth and calloutMaxWidth are no-op on TeachingBubble.

@brandonthomas
Copy link
Contributor

I've worked around this with negative margins...so...gross but works.

@brandonthomas
Copy link
Contributor

Actually that work around isn't stable. If the positional css rules are in certain places margins can cause the beak to visually disconnect. So that's not a great solution either.

@msft-fluent-ui-bot
Copy link
Collaborator

Because this issue has not had activity for over 150 days, we're automatically closing it for house-keeping purposes.

Still require assistance? Please, create a new issue with up-to date details.

@msft-fluent-ui-bot msft-fluent-ui-bot added the Resolution: Soft Close Soft closing inactive issues over a certain period label Apr 26, 2021
@microsoft microsoft locked as resolved and limited conversation to collaborators May 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

6 participants