Skip to content

Commit 2978031

Browse files
committed
fix(tooltip): make content inert when hidden
1 parent 98a36a3 commit 2978031

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elements/pf-tooltip/pf-tooltip.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ export class PfTooltip extends LitElement {
189189
aria-labelledby="tooltip">
190190
<slot id="invoker" @slotchange="${this.#invokerChanged}"></slot>
191191
</div>
192-
<div aria-hidden="${String(!open) as 'true' | 'false'}">
192+
<div ?inert="${!open}">
193193
<slot id="tooltip" name="content">${this.content}</slot>
194194
</div>
195195
</div>

0 commit comments

Comments
 (0)