Skip to content

Add Tooltip component #1621

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

Open
wants to merge 71 commits into
base: master
Choose a base branch
from
Open

Add Tooltip component #1621

wants to merge 71 commits into from

Conversation

RivaIvanova
Copy link
Member

Closes #1615

Code restructure and internal event listeners state
are now handled with AbortController
@dkoleva-infra
Copy link

@rkaraivanov

For all themes dark & white:

Fluent:
line-height: 20px (should be 16px); /now used some ig-body2-line-height var)
height: 26px; (should be 24px);
padding-top, padding-bottom: 3px (should be 4px);

Bootstrap:
line-height: 21px (should be 16px); /now used some ig-body2-line-height var);
height: 24px; (now is 27px);
padding-top, padding-bottom: 3px (should be 4px);

Material:
line-height: 20px (should be 16px); /now used some ig-body2-line-height var);
height: 26px; (should be 24px);
padding-top, padding-bottom: 3px (should be 4px);
letter-spacing: 0.25px (should be 0.33px);

Indigo:
height: 22px; (should be 24px);
padding-top, padding-bottom: 3px (should be 4px);
font-size: 10px (should be 12px);
shadow: no shadow (Elevations/Shadow 08);

@rkaraivanov
Copy link
Member

@didimmova

@rkaraivanov

For all themes dark & white:

Fluent: line-height: 20px (should be 16px); /now used some ig-body2-line-height var) height: 26px; (should be 24px); padding-top, padding-bottom: 3px (should be 4px);

Bootstrap: line-height: 21px (should be 16px); /now used some ig-body2-line-height var); height: 24px; (now is 27px); padding-top, padding-bottom: 3px (should be 4px);

Material: line-height: 20px (should be 16px); /now used some ig-body2-line-height var); height: 26px; (should be 24px); padding-top, padding-bottom: 3px (should be 4px); letter-spacing: 0.25px (should be 0.33px);

Indigo: height: 22px; (should be 24px); padding-top, padding-bottom: 3px (should be 4px); font-size: 10px (should be 12px); shadow: no shadow (Elevations/Shadow 08);

didimmova and others added 7 commits April 16, 2025 16:06
* Introduces a private `_defaultAnchor` variable to store the initial anchor.
  This value is set via `resolveAnchor`, which is triggered by
  `hostConnected` or when the host's `anchor` property changes. This ensures there is a reference to the host's current anchor element.

* When the tooltip is closed and the current anchor is transient, the anchor is set back to `_defaultAnchor`.

* Updates the test to check for proper anchor reset
* Anchor event listeners as wrapped weak references.
* `show` method now accepts an IDREF in addition to the element reference.
* Some code reorganization.
* Included the tooltip component inside the `defineAllComponents` collection.
@dkoleva-infra
Copy link

The text & icon in a sticky tooltip should be top-aligned.
Sticky_Tooltip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tooltip Component
7 participants