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

Make it clear audit classes can be dragged and clicked #390

Merged
merged 12 commits into from
Mar 1, 2020

Conversation

MaximoMachado
Copy link
Collaborator

@MaximoMachado MaximoMachado commented Feb 25, 2020

Closes #127
The audit reqs that can be dragged now elevate when hovered over by the mouse. The mouse cursor also changes to a grabby hand.

ClassInfo and canDrag have been moved from Requirement into a mixin called classInfo so that they can be used by the v-hover in the audit. They have also changed from computed to methods to allow a req to be passed into them. As such, the usages of classInfo and canDrag within Requirement now pass the req prop as a parameter.

The icon next to the requirement on the leaf level of the tree is no longer its own template but rather within the label slot. This was so the hover encompasses both the icon and text which makes it much more apparent. Some css styling was added so that the icon would be on the left side and be centered with the text of the label.

Copy link
Collaborator

@npfoss npfoss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really appreciate how clean and readable this is, and the tiles look great. I have no suggestions for improvement!

@npfoss npfoss merged commit 5063e6a into master Mar 1, 2020
@npfoss npfoss deleted the cdr-audit-hover branch March 1, 2020 02:46
miriam-rittenberg pushed a commit that referenced this pull request Oct 21, 2020
* Add hover and grabby mouse icon to leaf reqs.

* Add hover and grab cursor to leafs using v-ifs

* Add color change on hover. Fix cursor icon changing correctly.

* Remove draggable from requirement

* Add hover to entire leaf, not just text.

* Adjust dash position to match text. Clipboard icon slightly unaligned now.

* Move canDrag and classInfo to mixin.

* Add proper checking for draggable audit leaf.

* Fix class drag issue. TypeError still present.

* Fix class drag issue.

* lint

Co-authored-by: Nate Foss <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

make it clear you can click and drag audit classes?
2 participants