Skip to content

Regression: Tooltip styles and whitespace missing after upgrade to 5.0.0 (likely due to XSS filter) #33865

Open
@julianpark90

Description

@julianpark90

Bug description

After upgrading from 5.0.0rc3 to 5.0.0, I noticed that all custom styles—including inline styles and whitespace between numbers—are missing from tooltips. This appears to be a side effect of the new XSS filter implementation (PR #33765).

Steps to reproduce:

Upgrade Superset from 5.0.0rc3 to 5.0.0

Hover over any chart to display the tooltip

Observe that all inline styles (such as padding and alignment) and whitespace between values are missing

Expected behavior:

Tooltip should retain all intended styles and spacing as in previous versions

Actual behavior:

Tooltip loses all custom styles and whitespace, making the content hard to read

Possible cause:

The new XSS filter may be stripping style attributes and collapsing/removing whitespace or delimiters between tooltip values.

Question:

What is the recommended way to restore tooltip formatting and spacing under the new XSS filter rules?

Screenshots/recordings

No response

Superset version

5.0.0

Python version

3.11

Node version

20

Browser

Chrome

Additional context

No response

Checklist

  • I have searched Superset docs and Slack and didn't find a solution to my problem.
  • I have searched the GitHub issue tracker and didn't find a similar bug report.
  • I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.

Metadata

Metadata

Assignees

No one assigned

    Labels

    #bug:regressionBugs that are identified as regessionsviz:charts:tooltipRelated to tooltips in charts

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions