patternfly / react-topology

MIT License
8 stars 17 forks source link

feat(group label): Add ability to center the group's label on the edge #216

Closed jeff-phillips-18 closed 3 weeks ago

jeff-phillips-18 commented 1 month ago

What

Closes #205

Description

Adds the centerLabelOnEdge option to DefaultTaskGroup. Setting this to true will ignore the labelPadding parameter and instead align the label such that it is centered on the group's border. The source and target anchors are also adjusted to align with the label position.

Type of change

Screen shots / Gifs for design review

image

patternfly-build commented 1 month ago

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

jeff-phillips-18 commented 4 weeks ago

Label positioning in vertical "Pipelines Groups Complex Layout" looks great - just seeing one arrow overlapping the group label in the vertical "Pipeline Groups Layout" example for Task 3-3.

@jenny-s51 Fixed

github-actions[bot] commented 3 weeks ago

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

The release is available on:

Your semantic-release bot :package::rocket: