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

Bug - chart legend tooltip - missing space between label and value #11154

Closed
dlabrecq opened this issue Oct 31, 2024 · 0 comments · Fixed by #11156
Closed

Bug - chart legend tooltip - missing space between label and value #11154

dlabrecq opened this issue Oct 31, 2024 · 0 comments · Fixed by #11156
Assignees
Milestone

Comments

@dlabrecq
Copy link
Member

dlabrecq commented Oct 31, 2024

When we have only one item in the chart (or items of the same length), there is no space between the label and value.

See Cost Management issue https://issues.redhat.com/browse/COST-5648

The underlying issue is that "Cats" and "Dogs" may be the same number of characters, but they are not always the same length within a font family.

This is reproducible below when hiding all but one data set (i.e., only "Birds" is visible).
https://www.patternfly.org/charts/legends#interactive-legend

Example 1
Image

As a second test, change the data series legendItem; "Cats" to "us-west-1" and "Dogs" to "us-west-2"

Example 2
Image

@github-project-automation github-project-automation bot moved this to Needs triage in PatternFly Issues Oct 31, 2024
@dlabrecq dlabrecq changed the title Bug - chart legend tooltip - missing space between item and value Bug - chart legend tooltip - missing space between label and value Oct 31, 2024
@dlabrecq dlabrecq self-assigned this Oct 31, 2024
dlabrecq added a commit to dlabrecq/patternfly-react that referenced this issue Oct 31, 2024
dlabrecq added a commit to dlabrecq/patternfly-react that referenced this issue Oct 31, 2024
@tlabaj tlabaj moved this from Needs triage to PR Review in PatternFly Issues Nov 4, 2024
@tlabaj tlabaj modified the milestones: 2025.Q4, 2024.Q4 Nov 5, 2024
@github-project-automation github-project-automation bot moved this from PR Review to Done in PatternFly Issues Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants