Tooltip border issue in Recharts v2.1.13
See original GitHub issueI have searched the issues of this repository and believe that this is not a duplicate.
Reproduction link
https://codesandbox.io/s/pedantic-butterfly-fo30ni?file=/src/App.tsx
Steps to reproduce
-
Take Recharts Simple Bar chart example and open it in the codesandbox https://recharts.org/en-US/examples/SimpleBarChart
-
Upgrade recharts to
v2.1.13
in package.json
What is expected?
Chart tooltip should not have a visible border if not defined.
What is actually happening?
The tooltip border appears. In Firefox browser its solid red
color, in Chromium its solid black
color. The border appears randomly and there is no way how to remove it with CSS.
Issue Analytics
- State:
- Created a year ago
- Reactions:6
- Comments:11
Top Results From Across the Web
tooltip position recharts - CodeSandbox
Activating extension 'vscode.typescript-language-features' failed: Could not find bundled tsserver.js.
Read more >css - Change the styling of tooltip - recharts - Stack Overflow
Looks like there is margins defined on the <p> elements. .recharts-tooltip-wrapper { .customTooltip { p { margin:0; } } }.
Read more >React Charts - Simple, immersive & interactive charts for React
styles.css ... react-dom^17.0.2 ... n It also showcases the tooltip's ability to portal outside of an overflow\n element (the blue border-box).
Read more >Release notes - Masala Design System
2.5.0-2 (2021-09-29). Highlights ... Table/Grid horizontal scrolling issue is fixed. ... Tooltip in Icon Button Component has been added (f9f14233) ...
Read more >greymatter.io Documentation | Core Services
Upgraded urfavecli/v2 to v2.16.3. Updated instances of 'Grey Matter' in the repo to 'greymatter' ... use default border colors for tooltips (76269a2).
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
add property wrapperStyle={{ outline: “none” }} at Tooltip <Tooltip wrapperStyle={{ outline: “none” }} />
I have the same issue. I think wrapper style should be
outline: 'none'
by default