Skip to content
This repository was archived by the owner on Jun 28, 2026. It is now read-only.
This repository was archived by the owner on Jun 28, 2026. It is now read-only.

Tooltip is aligned wrong when tooltipStyleClass changes the tooltip size #4682

Description

@Ldoppea

I'm submitting a ... (check one with "x")

[x] bug report
[ ] feature request
[ ] support request

Plunkr Case (Bug Reports)
http://plnkr.co/edit/SgOQW2iiIFzEeTrgBRnr?p=preview

Current behavior
In the plnkr, the input's tooltip is not aligned with the input. This is due to custom CSS in tooltipStyleClass applying a different font size (also works with custom paddings or everything that affects tooltip size)

Expected behavior
The tooltip should be aligned with the input field.

Minimal reproduction of the problem with instructions
Apply pTooltip to an input.
Set the tooltipStyleClass with a custom class.
Add the corresponding CSS class and set a big font size.

What is the motivation / use case for changing the behavior?
Stylizing the tooltip

Please tell us about your environment:

  • PrimeNG version:
    5.0.2

  • Browser:
    all

  • Language:
    all

Metadata

Metadata

Assignees

Labels

Type: BugIssue contains a bug related to a specific component. Something about the component is not working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions