Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

Improvement/victory container #243

Merged
merged 5 commits into from
May 11, 2017
Merged

Conversation

boygirl
Copy link
Contributor

@boygirl boygirl commented May 10, 2017

This PR removes <g> rendering from VictoryContainer to reduce confusion over evented containers. Closes FormidableLabs/victory#539

This PR also renders an additional outer svg wth overflow="visible" so that anything rendered within VictoryPortal will be allowed to overflow the svg container (i.e. tooltips). Anything rendered in the inner svg element will still be clipped as normal (unless overflow: "visible" is explicitly added to parent styles). Closes FormidableLabs/victory#524

This PR also adds a renderInPortal prop to VictoryLabel. It works like the same prop in VictoryTooltip but defaults to false. Clipped data components (VictoryArea and VictoryLine) add renderInPortal to their default label components. Closes FormidableLabs/victory#521

This PR also changes the default responsive styles to width: "100%", height: "100%" to address an issue with incorrectly rendered containers in safari. This PR also re-orders style defaults so that these responsive styles may be overridden by explicitly adding width and height attrs to parent styles.

@boygirl boygirl merged commit 9b70393 into master May 11, 2017
@boygirl boygirl deleted the improvement/victory-container branch May 11, 2017 22:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant