Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update tooltip placement progress bar #5783

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading