Skip to content

Conversation

@myrta2302
Copy link
Contributor

@myrta2302 myrta2302 commented Nov 7, 2025

📄 Description

This PR updates the popovercontainer animation logic to fix a timing issue that happened when users hovered in and out quickly, causing the tooltip to get out of sync.

📝 Checklist

  • ✅ My code follows the style guidelines of this project
  • 🛠️ I have performed a self-review of my own code
  • 📄 I have made corresponding changes to the documentation
  • ⚠️ My changes generate no new warnings or errors
  • 🧪 I have added tests that prove my fix is effective or that my feature works
  • ✔️ New and existing unit tests pass locally with my changes

@changeset-bot
Copy link

changeset-bot bot commented Nov 7, 2025

🦋 Changeset detected

Latest commit: e231f74

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 14 packages
Name Type
@swisspost/design-system-components Patch
@swisspost/design-system-components-angular-workspace Patch
@swisspost/design-system-components-react Patch
@swisspost/design-system-documentation Patch
@swisspost/design-system-nextjs-integration Patch
@swisspost/design-system-components-angular Patch
@swisspost/design-system-changelog-github Patch
@swisspost/design-system-eslint Patch
@swisspost/design-system-icons Patch
@swisspost/internet-header Patch
@swisspost/design-system-styles Patch
@swisspost/design-system-styles-primeng-workspace Patch
@swisspost/design-system-styles-primeng Patch
@swisspost/design-system-tokens Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@myrta2302 myrta2302 requested review from oliverschuerch and removed request for alizedebray November 7, 2025 16:14
@swisspost-bot
Copy link
Contributor

swisspost-bot commented Nov 7, 2025

Related Previews

* Animation style
*/
@Prop() readonly animation?: 'pop-in' | null = null;
@Prop() readonly animation?: 'pop-in' | null = 'pop-in';
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this necessary, to fix the bug related to the animation?
Don't we handle that with your other PR?

Copy link
Contributor Author

@myrta2302 myrta2302 Nov 10, 2025

Choose a reason for hiding this comment

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

That was left there by mistake. I ll revert it.

Copy link
Contributor

@oliverschuerch oliverschuerch left a comment

Choose a reason for hiding this comment

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

postBeforeToggle and postBeforeShow are actually the same lifecycle hooks, just with different payloads.
This is not to be fixed here, but it could be an improvement in the future.
Same is true for postToggle and postShow.

It would be possible to combine the payload of them and end up having only two events, instead of four.

@sonarqubecloud
Copy link

@myrta2302 myrta2302 merged commit 85bcdb7 into main Nov 10, 2025
14 checks passed
@myrta2302 myrta2302 deleted the 6606-bug-tooltip-functionality-breaks-when-hovering-inout-too-fast-and-animation-is-used branch November 10, 2025 11:56
gfellerph pushed a commit that referenced this pull request Nov 10, 2025
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

`main` is currently in **pre mode** so this branch has prereleases
rather than normal releases. If you want to exit prereleases, run
`changeset pre exit` on `main`.

⚠️⚠️⚠️⚠️⚠️⚠️

# Releases
## @swisspost/[email protected]

### Minor Changes

- Updated the `post-header` to use aria-current="location" for active
header links outside main navigation to improve accessibility. (by
[@myrta2302](https://github.com/myrta2302) with
[#6566](#6566))

### Patch Changes

- Updated `post-popovercontainer` to fix a tooltip desynchronization
issue when hovering quickly in and out. (by
[@myrta2302](https://github.com/myrta2302) with
[#6607](#6607))
-   Updated dependencies:
    -   @swisspost/[email protected]
    -   @swisspost/[email protected]

## @swisspost/[email protected]

### Minor Changes

- Added icons: `2741` (by
[@swisspost-bot](https://github.com/swisspost-bot) with
[#6588](#6588))

## @swisspost/[email protected]

### Minor Changes

- Updated the `post-header` to use aria-current="location" for active
header links outside main navigation to improve accessibility. (by
[@myrta2302](https://github.com/myrta2302) with
[#6566](#6566))

### Patch Changes

-   Updated dependencies:
    -   @swisspost/[email protected]

## @swisspost/[email protected]

### Patch Changes

-   Updated dependencies:
    -   @swisspost/[email protected]

## @swisspost/[email protected]

### Patch Changes

-   Updated dependencies:
    -   @swisspost/[email protected]

## @swisspost/[email protected]

### Patch Changes

-   Updated dependencies:
    -   @swisspost/[email protected]

## @swisspost/[email protected]



## @swisspost/[email protected]



## @swisspost/[email protected]



## @swisspost/[email protected]

### Minor Changes

- Updated the `post-header` to use aria-current="location" for active
header links outside main navigation to improve accessibility. (by
[@myrta2302](https://github.com/myrta2302) with
[#6566](#6566))

### Patch Changes

- Updated the migration guide to improve clarity and usability, making
it more user-friendly and understandable, and added detailed
instructions for removing Bootstrap and Ng-Bootstrap along with general
migration guidance. (by [@leagrdv](https://github.com/leagrdv) with
[#6565](#6565))

- Updated several outdated Figma links to point to the correct design.
(by [@leagrdv](https://github.com/leagrdv) with
[#6592](#6592))

-   Updated dependencies:
    -   @swisspost/[email protected]
    -   @swisspost/[email protected]
    -   @swisspost/[email protected]
    -   @swisspost/[email protected]
    -   @swisspost/[email protected]
    -   @swisspost/[email protected]

## @swisspost/[email protected]

### Patch Changes

-   Updated dependencies:
    -   @swisspost/[email protected]
    -   @swisspost/[email protected]

## @swisspost/[email protected]

### Patch Changes

-   Updated dependencies:
    -   @swisspost/[email protected]

## @swisspost/[email protected]

### Patch Changes

-   Updated dependencies:
    -   @swisspost/[email protected]
    -   @swisspost/[email protected]

## @swisspost/[email protected]

### Patch Changes

-   Updated dependencies:
    -   @swisspost/[email protected]

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

[bug]: Tooltip functionality breaks when hovering in/out too fast and animation is used

4 participants