Skip to content

Commit

Permalink
fix(tooltip): should not receive focus (#1170)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arturo Castillo Delgado authored Feb 10, 2023
1 parent 8d609a4 commit 33571f7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/components/src/components/tooltip/tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -289,12 +289,15 @@ export class Tooltip {
aria-hidden={this.opened ? 'false' : 'true'}
ref={(el) => (this.tooltipEl = el)}
id={this.componentId}
tabIndex={0}
onMouseOver={this.handleTooltipMouseOver}
onMouseLeave={this.handleTooltipBlur}
>
<slot name="content">{this.content}</slot>
<div part="arrow" ref={(el) => (this.arrowEl = el)}></div>
<div
aria-hidden="true"
part="arrow"
ref={(el) => (this.arrowEl = el)}
></div>
</div>
)}
</Host>
Expand Down

0 comments on commit 33571f7

Please sign in to comment.