Skip to content

DBTag should provide a customizable tooltip when the behavior is set to removable #6545

@JulianBu

Description

@JulianBu

Which generators are affected?

  • All
  • HTML
  • React
  • Angular
  • Vue
  • Web components
  • Power Apps

Reproduction case

When the DBTag is used with the removable behavior, the tooltip always has the same emphasis and displays “Remove”

Image

I tried defining a own tooltip into but its messed up.

<DBTag
        key="dingsi"
        behavior="removable"
        onRemove={() => onRemove({ halte: undefined })}
      >
        <span className="whitespace-nowrap">
            "Verkehrshalte"
        </span>
        <DBTooltip emphasis="strong">
          Entfernen
        </DBTooltip>
</DBTag>

And it end up looking like this:

Image

Expected Behaviour

The expected behavior is the ability to set the emphasis to strong and supply a custom text for the tooltip.

Screenshots

No response

Browser version

Edge

Add any other context about the problem here.

No response

Which DB business unit do you work for?

DB Systel GmbH (please name your customer below)

”DB Systel” please enter your customer / ”other” please enter your area or business unit.

InfraGO

What project are you working on?

C2S / UJK

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    🎶 Waiting for feedback

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions