Skip to content

Commit

Permalink
fix(VictoryContainer): correctly apply style overrides (#2953)
Browse files Browse the repository at this point in the history
  • Loading branch information
oe-josh-martin authored Nov 6, 2024
1 parent d472e76 commit bafe8b7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/fluffy-mirrors-film.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"victory-core": patch
---

Fix regression to touchAction override in VictoryContainer
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,9 @@ export const VictoryContainer = (initialProps: VictoryContainerProps) => {
...style,
width: responsive ? style?.width : dimensions.width,
height: responsive ? style?.height : dimensions.height,
pointerEvents: "none",
touchAction: "none",
position: "relative",
pointerEvents: style?.pointerEvents ?? "none",
touchAction: style?.touchAction ?? "none",
position: style?.position ?? "relative",
}}
data-ouia-component-id={ouiaId}
data-ouia-component-type={ouiaType}
Expand Down

0 comments on commit bafe8b7

Please sign in to comment.