-
Notifications
You must be signed in to change notification settings - Fork 19.8k
Open
Labels
bugenThis issue is in EnglishThis issue is in EnglishpendingWe are not sure about whether this is a bug/new feature.We are not sure about whether this is a bug/new feature.
Description
Version
5.2.2
Link to Minimal Reproduction
Steps to Reproduce
- When changing the line height value in the index.js in the tooltip
- Open the popup in a new window to be able to use the developer tools.
- Go to the sources tab in the developer tools
- Use mouse to hover over bar chart to get a tooltip to show up
- After the tooltip is present press the F8 key to pause the page
- In the developer tools go to the Elements tab and find or select the tooltip HTML element
- In examining the style attribute of the tooltip HTML element, you will see the '... font: italic bold 40px / 60px Papyrus; ...'
- The 60px in this example is the line height. The lineHeight value only changes when updating the fontSize property.
Current Behavior
no matter what the tooltip -> textStyle -> lineHeight property is set to, the resulting HTML element's style attribute, will be one and one half times the value of the tooltip -> textStyle -> fontSize property value.
Expected Behavior
When specifying the tooltip -> textStyle -> lineHeight that the property is properly rendered in the resulting HTML element.
tooltip: {
textStyle: {
// Does not work
lineHeight: 40,
// Does work
fontFamily: "Papyrus",
fontStyle: "Italic",
fontSize: 40,
textBorderColor: "yellow",
backgroundColor: "orange",
fontWeight: "bold",
color: "red",
},
},
The above tooltip configuration should have the following resulting style in the HTML element:
Environment
- OS: Windows 11
- Browser: Brave Version 1.70.123 Chromium: 129.0.6668.89 (Official Build)
- Framework: Typescript Version 5.3.3Any additional comments?
No response
Metadata
Metadata
Assignees
Labels
bugenThis issue is in EnglishThis issue is in EnglishpendingWe are not sure about whether this is a bug/new feature.We are not sure about whether this is a bug/new feature.