Skip to content

Commit 13cdc1c

Browse files
committed
Tooltip fix to show rich editor html
1 parent bda56d2 commit 13cdc1c

File tree

1 file changed

+3
-1
lines changed
  • src_ts/components/pages/activities-and-data-collection/activity-item/summary-tab/completed-finding

1 file changed

+3
-1
lines changed

src_ts/components/pages/activities-and-data-collection/activity-item/summary-tab/completed-finding/completed-finding.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {css, LitElement, TemplateResult, html, CSSResultArray} from 'lit';
22
import {customElement, property} from 'lit/decorators.js';
3+
import {unsafeHTML} from 'lit/directives/unsafe-html.js';
34
import '@shoelace-style/shoelace/dist/components/tooltip/tooltip.js';
45
import {updateAppLocation} from '../../../../../../routing/routes';
56
import {DATA_COLLECTION_PAGE} from '../../../activities-and-data-collection-page';
@@ -25,7 +26,8 @@ export class CompletedFindingComponent extends LitElement {
2526
? html` <label class="completed-finding-title">${this.completedFindingTitle}</label> `
2627
: html`
2728
<label class="completed-finding-title shorted-title">
28-
<sl-tooltip placement="right" offset="5" content="${this.completedFindingTitle}">
29+
<sl-tooltip placement="right" offset="5">
30+
<div slot="content">${unsafeHTML(this.completedFindingTitle)}</div>
2931
<span id="ellipsis">...</span>
3032
</sl-tooltip>
3133
</label>

0 commit comments

Comments
 (0)