Skip to content
This repository was archived by the owner on Oct 19, 2021. It is now read-only.

Commit 5e13b23

Browse files
tw15eganasudoh
authored andcommitted
fix(tooltipIcon): show text on hover (#1083)
* fix(tooltipIcon): show text on hover * test(TooltipIcon): update snapshot
1 parent 3677e8a commit 5e13b23

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/TooltipIcon/TooltipIcon.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const TooltipIcon = ({
2020
});
2121
return (
2222
<div {...rest} className={tooltipClassName}>
23-
<button className={triggerClassName} title={tooltipText}>
23+
<button className={triggerClassName} aria-label={tooltipText}>
2424
{children}
2525
</button>
2626
</div>

src/components/TooltipIcon/__snapshots__/TooltipIcon-test.js.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ exports[`TooltipIcon should allow the user to specify the direction 1`] = `
1010
className="custom-class bx--tooltip-icon"
1111
>
1212
<button
13+
aria-label="tooltip text"
1314
className="bx--tooltip__trigger bx--tooltip--icon__top"
14-
title="tooltip text"
1515
>
1616
<svg />
1717
</button>
@@ -29,8 +29,8 @@ exports[`TooltipIcon should render 1`] = `
2929
className="custom-class bx--tooltip-icon"
3030
>
3131
<button
32+
aria-label="tooltip text"
3233
className="bx--tooltip__trigger bx--tooltip--icon__bottom"
33-
title="tooltip text"
3434
>
3535
<svg />
3636
</button>

0 commit comments

Comments
 (0)