Skip to content
New issue

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

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

Already on GitHub? # to your account

fix(charts): tooltip whitespace is not preserved for Safari #10355

Merged
merged 1 commit into from
May 14, 2024

Conversation

dlabrecq
Copy link
Member

@dlabrecq dlabrecq commented May 13, 2024

Preserve tooltip whitespace for Safari

Closes #10354

Screenshot 2024-05-13 at 10 50 01 AM

@patternfly-build
Copy link
Contributor

patternfly-build commented May 13, 2024

@@ -157,7 +157,7 @@ export const getLegendTooltipSize = ({
// Get spacing to help align legend labels and text values
const spacer = 'x';
const getSpacing = (legendLabel: string, textLabel: string) => {
let spacing = '';
let spacing = '\u00A0';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a note that this is a non-breaking space

Copy link
Member Author

@dlabrecq dlabrecq May 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that's what I want. Cannot use   here as the tooltip is also SVG.

@tlabaj tlabaj merged commit 13a5093 into patternfly:main May 14, 2024
13 checks passed
@patternfly-build
Copy link
Contributor

Your changes have been released in:

  • @patternfly/react-charts@7.4.0-prerelease.6
  • @patternfly/react-docs@6.4.0-prerelease.16

Thanks for your contribution! 🎉

@dlabrecq dlabrecq deleted the whitespace branch May 16, 2024 16:15
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug - Charts - tooltip whitespace not preserved for Safari
4 participants