Skip to content

Bootstrap tooltip text is not inheriting the base body font due to the hardcoded --bs-font-sans-serif #41504

Open
@sinjuangajan

Description

@sinjuangajan

Bootstrap tooltip text is not inheriting the base body font due to the hardcoded --bs-font-sans-serif

Actual Behavior:
The tooltip explicitly uses --bs-font-sans-serif, which overrides any custom base font set on the body.

Image

Expected Behavior:
Tooltip text should inherit the base font defined on the or root element to maintain consistent typography.

Image

Steps to Reproduce:

Define a custom font-family on the element.

Trigger a Bootstrap tooltip.

Observe that the tooltip font does not match the body font.

Suggestion:
Remove --bs-font-sans-serif from the tooltip's font declaration so it can automatically inherit the base font from the parent or body.

Bootstrap 5.3.6

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions