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

[Bug][Firefox]: Long tooltip text results in tooltip offset to the left #4803

Open
1 task done
TiffanyAltieri opened this issue Oct 4, 2024 · 1 comment
Open
1 task done
Labels
Browser: FireFox bug Something isn't working Component: Tooltip firefox Use this label on pull requests to perf benchmark in Firefox jira ticket created

Comments

@TiffanyAltieri
Copy link

Code of conduct

  • I agree to follow this project's code of conduct.

Impacted component(s)

Tooltip

Expected behavior

Tooltip displays under a component, bottom center. Text in tooltip goes with natural language flow, LTR or RTL.

Actual behavior

When text is longer, tooltip shifts noticeably to the left in Firefox, though I suspect is misaligned in Chrome as well, its just not as noticeable. The JIRA bug reported only Firefox.

I can add text-align:center to a parent of the tooltip to produce the required centering, but it also centers the text, which is not what design is trying to achieve.

Screenshots

image

What browsers are you seeing the problem in?

Firefox, Chrome

How can we reproduce this issue?

  1. Go to new.express.adobe.com
  2. View the 4 cards in the middle
  3. Hover to see tooltip

Sample code or abstract reproduction which illustrates the problem

Here is an example another Adobe member made: https://studio.webcomponents.dev/edit/WgpUmtCOjX0b62lSdUgd/src/index.ts?p=stories

A PR of my exact issue can be seen here [Adobe internal]:
https://git.corp.adobe.com/Horizon/hz/pull/98869

Severity

SEV 3

Logs taken while reproducing problem

No response

@TiffanyAltieri TiffanyAltieri added bug Something isn't working needs jira ticket triage An issue needing triage labels Oct 4, 2024
@TiffanyAltieri
Copy link
Author

Related: #4734

@najikahalsema najikahalsema added Browser: FireFox firefox Use this label on pull requests to perf benchmark in Firefox jira ticket created Component: Tooltip and removed needs jira ticket triage An issue needing triage labels Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Browser: FireFox bug Something isn't working Component: Tooltip firefox Use this label on pull requests to perf benchmark in Firefox jira ticket created
Projects
None yet
Development

No branches or pull requests

2 participants