patternfly / react-topology

MIT License
8 stars 17 forks source link

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

Closed jeff-phillips-18 closed 1 month ago

jeff-phillips-18 commented 1 month 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 1 month ago

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

patternfly-build commented 1 month ago

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

github-actions[bot] commented 1 month 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: