Skip to content

Commit

Permalink
update tooltip placement progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasStordeur committed May 30, 2024
1 parent 5bb6c80 commit 04ce231
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions changelogs/unreleased/5730-tooltip-placement.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
description: Improve the placement of the tooltip in the Resource Discovery page.
issue-nr: 5730
change-type: patch
destination-branches: [master, iso7]
sections:
minor-improvement: "{{description}}"
2 changes: 1 addition & 1 deletion src/UI/Components/LegendBar/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const Item: React.FC<Props> = ({
onClick,
id,
}) => (
<Tooltip content={label} position="auto" distance={4} enableFlip>
<Tooltip content={label} position="top" distance={4} enableFlip>
<Container
value={value}
data-value={value}
Expand Down
2 changes: 1 addition & 1 deletion src/UI/Components/LegendBar/Total.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const Total: React.FC<{ total: Total; value: number }> = ({
value,
}) =>
total.label ? (
<Tooltip content={total.label} position="auto" distance={4} enableFlip>
<Tooltip content={total.label} position="top" distance={4} enableFlip>
<TotalContainer>{total.format(value)}</TotalContainer>
</Tooltip>
) : (
Expand Down

0 comments on commit 04ce231

Please sign in to comment.