Skip to content

Commit

Permalink
chore(TDP-12538): always show tooltip on faceted badge overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmoreno committed Sep 22, 2023
1 parent 9435bbc commit b660447
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .changeset/dirty-geckos-eat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@talend/react-faceted-search': minor
---

chore(TDP-12538): always show tooltip on faceted badge overlay
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,11 @@ const BadgeOverlay = ({
</Button>
);

const buttonToRender = iconName ? (
<TooltipTrigger label={label} tooltipPlacement="top">
{button}
</TooltipTrigger>
) : (
button
);

return (
<div className={className}>
{buttonToRender}
<TooltipTrigger label={label} tooltipPlacement="top">
{button}
</TooltipTrigger>

<Overlay
id={`${id}-overlay`}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
exports[`BadgeOverlay should render the html output in the default state 1`] = `
<div>
<button
aria-describedby="42"
aria-label="my label"
class="btn btn-link"
id="my-id-action-overlay"
Expand Down

0 comments on commit b660447

Please sign in to comment.