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

Tooltip auto position #802

Merged
merged 21 commits into from
Sep 18, 2023
Merged

Tooltip auto position #802

merged 21 commits into from
Sep 18, 2023

Conversation

jAllanOli
Copy link
Contributor

@jAllanOli jAllanOli commented Aug 18, 2023

Issue Number

fix #801

Description

It was required that the tooltip adjusted its position depending on the space it has avaliable, so I created a service with a subject to facilitate the comunication between the the directive and the component, so when the component verify the space around the host it notify the service so the directive knows if it has to call again the setPosition to fix the tooltip position.

How to Test

yarn test tooltip

Compliance

  • I have verified that this change complies with our code and contribution policies.
  • I have verified that this change does not cause regressions and does not affect other parts of the code.

@jAllanOli jAllanOli linked an issue Aug 18, 2023 that may be closed by this pull request
@jAllanOli jAllanOli self-assigned this Aug 18, 2023
@jAllanOli jAllanOli added the WIP Work in progress label Aug 18, 2023
@jAllanOli jAllanOli requested a review from iurynogueira August 18, 2023 13:39
@jAllanOli jAllanOli marked this pull request as ready for review September 6, 2023 18:31
@danilo-moreira-brisa danilo-moreira-brisa removed WIP Work in progress don't merge labels Sep 6, 2023
projects/ion/src/lib/tooltip/tooltip.component.spec.ts Outdated Show resolved Hide resolved
projects/ion/src/lib/tooltip/tooltip.component.ts Outdated Show resolved Hide resolved
projects/ion/src/lib/tooltip/tooltip.component.ts Outdated Show resolved Hide resolved
projects/ion/src/lib/tooltip/tooltip.component.ts Outdated Show resolved Hide resolved
projects/ion/src/lib/tooltip/tooltip.component.ts Outdated Show resolved Hide resolved
projects/ion/src/lib/tooltip/tooltip.directive.ts Outdated Show resolved Hide resolved
projects/ion/src/lib/tooltip/tooltip.component.ts Outdated Show resolved Hide resolved
Copy link
Member

@iurynogueira iurynogueira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

projects/ion/src/lib/tooltip/tooltip.component.ts Outdated Show resolved Hide resolved
@iurynogueira
Copy link
Member

@Thiago-Pio-Brisa

projects/ion/src/lib/tooltip/tooltip.component.ts Outdated Show resolved Hide resolved
projects/ion/src/lib/tooltip/tooltip.service.ts Outdated Show resolved Hide resolved
projects/ion/src/lib/tooltip/tooltip.component.ts Outdated Show resolved Hide resolved
projects/ion/src/lib/tooltip/tooltip.component.ts Outdated Show resolved Hide resolved
projects/ion/src/lib/tooltip/tooltip.service.ts Outdated Show resolved Hide resolved
projects/ion/src/lib/tooltip/tooltip.directive.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@danilo-moreira-brisa danilo-moreira-brisa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@iurynogueira iurynogueira merged commit 3998701 into main Sep 18, 2023
3 checks passed
@iurynogueira iurynogueira deleted the tooltip-auto-position branch September 18, 2023 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: tooltip should auto adjust its position
5 participants