-
Notifications
You must be signed in to change notification settings - Fork 418
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
feat: clearly distinguish select and hover states #640
Conversation
I'd go with 2px. Consider, that single select is the default case and it should help to better see/find the selected element. Particularly in case of clicking on an error message references.
edit: no hover on selected elements seems already work as expected |
@philippfromme You have your adjustments on a branch? |
2px looks better. 1px makes sense for high-precision drawing tools (adobe, affinity, sketch...), but for a rapid modeling tool, quick distinguishability and clickability is more important. |
I'll provide another version that incorporates @philippfromme styles. If we go for #640 (comment), more general clarity on our UI controls helps. |
Visual sizing has no impact for |
4f382db
to
3a3fe25
Compare
Accounting for @philippfromme feedback but also taking into consideration other drawing apps I've reworked this PR:
I've considered the following tools for comparison:
|
I think this is looking great! Cool that we're working on it. One question for you @nikku - why don't we ease the corners of the selection boxes? I think this looks much more refined, given that almost everything being selected also has rounded corners. All we would need to do is decide on a different behavior for pools, which seems doable to me. |
@currandwyer Do you mean border radius? We could use the same border radius as we do for forms. |
@currandwyer Thanks for your feedback! As mentioned here I'd love to take easing (rounding) borders out of this topic, as "doing exceptions based on element types" is not a direction I'd like to go right now. It is not only about pools, but about gateways, groups, DMN decisions, ... Selection outline shall be a general concern and not depend on the shape of the element; at least this is something that I'd not expect as a user. If you consider Miro for example, they agree with me: |
@philippfromme That is a minimal one, right? I'll give it a shot and report back how that looks like. |
Yeah @philippfromme I think even just having 1-2 px corner radius is nice - it's subtle, but it softens the look a bit, and shows that you thought about it. By the way, in Operate we already have a relatively large corner radius: |
@currandwyer Thanks for the operate screen. Does the user interact with Participants there? How does operate handle selection on DMN DRD diagrams (with decisions and text annotations)? |
@nikku is it possible (and to what cost) to have the outline thickness be fixed, so not to scale with the canvas when you zoom? |
@nikku interesting thought to get rid of the hover outline at all, this solves many problems with multi-select. |
Not easily possible.
When exactly? We could do it. But I don't miss it (and no-one ever did). |
Let us follow up with this in a new issue @philippfromme. I've checked other tools and that is exactly how they do it. Our multi-select outline also works like this: |
👍🏻 |
Just found this bug while testing, which could be caused by this bpmn-io/bpmn-js#1657 |
I am not 100% happy with having no hover state anymore, but as this solution solves current problems, please move forward with it. |
Potential follow up once we got this merged (#643), incorporating @christian-konrad earlier comment (#640 (comment)). I did check other tools and a majority do it as suggested. |
* remove hover outline (not present in comparable editor apps) * make select outline solid so it is easier to recognize * make drag handles solid so they are easier to recognize * unify drag handle sizes
* separate primary from secondary selection * hide bendpoint + segment draggers on multi-select
Use same color like selection outline to match users mental model.
21e4c8f
to
c5b1706
Compare
Don't rely on rules to tell apart shapes and connections.
In order to do stuff with it...
@philippfromme As discussed, please |
I was about to approve. What do you mean? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is such a neat package of improvements! 🏅 I love it!
This proposes a rework of our hover and select outline, as well as interaction (resize, drag, ...) handles:
Role model for this change is Google Slides, but similar approaches can be found in many different apps.
Try it out locally:
TODO
Related to bpmn-io/bpmn-js#1616