You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if it's a bug in the current implementation or a not yet implemented feature, so let's start with a feature request 😄
Currently, the ld-tooltip component can adjust its own position based on the vertical position of its triggen on the screen. This ensures it is displayed under the trigger if the top border of the window is too close. It would be nice to have the same functionality for the X-axis as well. At present, the tooltip overflows the window horizontally, making the text unreadable.
Describe the use case
When you have a paragraph with long text and you want to make a word the trigger for a tooltip, the word could be near the right or left border of the window depending on the device width. In such cases, the tooltip should adjust its position horizontally to ensure it remains within the viewport and the text is fully readable.
The text was updated successfully, but these errors were encountered:
Timy78
added
feature
Issues that describe new features.
triage
An issue that needs assessment to determine its validity and urgency
labels
Jun 20, 2024
Prerequisites
Describe the feature request
I'm not sure if it's a bug in the current implementation or a not yet implemented feature, so let's start with a feature request 😄
Currently, the ld-tooltip component can adjust its own position based on the vertical position of its triggen on the screen. This ensures it is displayed under the trigger if the top border of the window is too close. It would be nice to have the same functionality for the X-axis as well. At present, the tooltip overflows the window horizontally, making the text unreadable.
Describe the use case
When you have a paragraph with long text and you want to make a word the trigger for a tooltip, the word could be near the right or left border of the window depending on the device width. In such cases, the tooltip should adjust its position horizontally to ensure it remains within the viewport and the text is fully readable.
Describe preferred solution
No response
Describe alternatives
No response
Related code
https://codesandbox.io/p/sandbox/ld-tooltip-bug-repro-2xm6g8
Additional information
No response
The text was updated successfully, but these errors were encountered: