Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setColor should always set the external label to "stroke" color #1653

Closed
smbea opened this issue May 18, 2022 · 3 comments · Fixed by #1655
Closed

setColor should always set the external label to "stroke" color #1653

smbea opened this issue May 18, 2022 · 3 comments · Fixed by #1655
Assignees
Labels
bug Something isn't working spring cleaning Could be cleaned up one day ux

Comments

@smbea
Copy link
Contributor

smbea commented May 18, 2022

Describe the Bug

When setting the color of elements with external labels, the external label is set to the "fill" color instead of the "stroke" color. This is different to the color set for embedded labels. This raises a UX concern, because of the color being so light.

⚠️ This happens if color is applied to label specifically (not when applied to target shape).

Steps to Reproduce

  1. select an external label
  2. use modeling.setColor API to change the color of the selection
  3. observe external label is set to the fill color:

Screenshot 2022-05-18 at 16 30 58

Optional: can be tested in Camunda Modeler with selection tool and Edit -> Set color :

Screen.Recording.2022-05-19.at.16.49.36.mov

Expected Behavior

External labels should be set to the "stroke" color, as seen in the embedded labels

Environment

  • Library version: latest
@smbea smbea added bug Something isn't working backlog Queued in backlog ux spring cleaning Could be cleaned up one day labels May 18, 2022
@smbea smbea self-assigned this May 18, 2022
@smbea smbea changed the title setColor should set the external label to "stroke" color setColor should always set the external label to "stroke" color May 18, 2022
@smbea
Copy link
Contributor Author

smbea commented May 18, 2022

This happens in SetColorHandler. This is because when setting the color of a multi element selection, the external label is considered as a standalone element. For a single element, only the shape is selected and the label color is derived from it.

@nikku
Copy link
Member

nikku commented May 19, 2022

warning This only happens if color is applied to selection of element + element label.

From what I found this also happens when you apply on the label itself.

@smbea
Copy link
Contributor Author

smbea commented May 19, 2022

Yes, I will update correctly @nikku

smbea added a commit that referenced this issue May 19, 2022
@bpmn-io-tasks bpmn-io-tasks bot added in progress Currently worked on and removed backlog Queued in backlog labels May 19, 2022
@bpmn-io-tasks bpmn-io-tasks bot added needs review Review pending in progress Currently worked on and removed in progress Currently worked on needs review Review pending labels May 19, 2022
@bpmn-io-tasks bpmn-io-tasks bot removed the needs review Review pending label May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working spring cleaning Could be cleaned up one day ux
Development

Successfully merging a pull request may close this issue.

2 participants