Skip to content

Commit aa6e28c

Browse files
authored
fix: Fixes bar chart popover placement in Firefox (#3876)
1 parent e41fbe1 commit aa6e28c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/mixed-line-bar-chart/bar-groups.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ export default function BarGroups<T extends ChartDataTypes>({
4646
aria-label={ariaLabel}
4747
aria-haspopup={true}
4848
aria-expanded={isPopoverPinned}
49-
fill="none"
49+
// We must use "transparent" instead of "none" so that Firefox popover placement works correctly.
50+
// When an SVG element has no stroke or fill color the Firefox optimizes it out.
51+
fill="transparent"
5052
className={styles['bar-group']}
5153
/>
5254
))}

0 commit comments

Comments
 (0)