Animate expand fix menus

This commit is contained in:
Bryan Housel
2019-02-12 00:00:12 -05:00
parent 81bd734849
commit 6cb1656cac
2 changed files with 12 additions and 2 deletions
+10 -1
View File
@@ -3026,7 +3026,16 @@ ul.issue-fix-list li:not(:last-of-type) {
border-bottom-width: 1px;
}
.issue:not(.expanded) ul.issue-fix-list {
display: none;
height: 0px;
transition: height 75ms linear;
-moz-transition: height 75ms linear;
-webkit-transition: height 75ms linear;
}
.issue.expanded ul.issue-fix-list {
height: 100%;
transition: height 75ms linear;
-moz-transition: height 75ms linear;
-webkit-transition: height 75ms linear;
}
+2 -1
View File
@@ -74,7 +74,8 @@ export function uiEntityIssues(context) {
})
.on('click', function(d, i) {
_expanded = i; // expand only the clicked item
items.classed('expanded', function(d, i) { return i === _expanded; });
selection.selectAll('.issue')
.classed('expanded', function(d, i) { return i === _expanded; });
var loc = d.loc();
if (loc) {