patternfly / react-topology

MIT License
13 stars 20 forks source link

fix(DefaultNode): Correctly scale the node's label on hover when zoomed iyt #212

Closed jeff-phillips-18 closed 6 months ago

jeff-phillips-18 commented 6 months ago

What

Closes #211

Description

When hovering over a node when zoomed out, the label is brought to the top layer. This causes the transform used on the node to not have effect on the label. We need to set the transform to the same transform used by the node in order to get the same translation and scale.

Type of change

Screen shots / Gifs for design review

image

jeff-phillips-18 commented 6 months ago

Demo app surge: https://node-label-hover.surge.sh/

patternfly-build commented 6 months ago

Preview: https://react-topology-pr-topology-212.surge.sh

github-actions[bot] commented 6 months ago

:tada: This PR is included in version 5.4.0-prerelease.5 :tada:

The release is available on:

Your semantic-release bot :package::rocket: