Skip to content

[Tooltip] tooltip() directive does not support options #2026

@jpzwarte

Description

@jpzwarte

Provide a general summary of the issue here

<sl-button ${tooltip('Hello world')}>

The above code will not work because:

  • You cannot provide a context option using the directive like you can with Tooltip.lazy()
  • Tooltip.lazy() defaults to target.shadowRoot, which in this case is the <sl-button> and that does not have <sl-tooltip> as a scoped custom element

We should improve tooltip()/Tooltip.lazy() to work better in this case.

👤 Your name

Jeroen

🧢 Your Product/Team

SLDS

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

✈️ Released

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions