Skip to content

Tooltip changes the width of children components #932

@victorfunes

Description

@victorfunes
  • I have searched the Issues to see if this bug has already been reported
  • I have tested the latest version

Steps to reproduce

      <div className="bg-gray-300 w-full">
        <Tooltip content="textWidth">
          <button type="button" className="w-full bg-blue-500 text-white px-2">
            Width test
          </button>
        </Tooltip>
      </div>

Generates this:
image

Without the tooltip:

      <div className="bg-gray-300 w-full">
        <button type="button" className="w-full bg-blue-500 text-white px-2">
          Width test
        </button>
      </div>

Generates this:
image

Current behavior

Now using the tooltip component changes the width of the children elements, and it shouldn't affect the style.

Expected behavior

The style of the Tooltip children components should be exactly the same than without the Tooltip.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs infoFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions