Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Commit c9bcbbf

Browse files
committed
panel experiment: set z-index on the selected panel
1 parent fc8cef1 commit c9bcbbf

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

ffu/panel/list-list.html

+10-2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
max-width: 400px;
2222
max-height: 540px;
2323
margin: 0 auto;
24+
-webkit-tap-highlight-color: rgba(0,0,0,0);
25+
-webkit-touch-callout: none;
2426
}
2527
</style>
2628
</head>
@@ -43,7 +45,6 @@
4345
right: 0;
4446
bottom: 0;
4547
left: 0;
46-
z-index: 1;
4748
}
4849
#list {
4950
position: absolute;
@@ -57,6 +58,9 @@
5758
-webkit-transition: opacity 0.3s ease-in;
5859
transition: opacity 0.3s ease-in;
5960
}
61+
.panel-selected {
62+
z-index: 1;
63+
}
6064
#cards, #folders {
6165
overflow: auto;
6266
-webkit-overflow-scrolling: touch;
@@ -193,6 +197,7 @@
193197
this.alphaContacts = alphaContacts();
194198
this.expandTransitionEndListener = this.exapndTransitionEnd.bind(this);
195199
this.shrinkTransitionEndListener = this.shrinkTransitionEnd.bind(this);
200+
this.listShowingChanged();
196201
},
197202
folderTap: function(e, detail, sender) {
198203
this.expandAction(sender);
@@ -234,7 +239,10 @@
234239
this.$.list.removeEventListener('transitionend', this.shrinkTransitionEndListener);
235240
this.$.home.style.visibility = 'visible';
236241
this.$.list.style.visibility = 'hidden';
237-
242+
},
243+
listShowingChanged: function() {
244+
this.$.home.classList.toggle('panel-selected', !this.listShowing);
245+
this.$.list.classList.toggle('panel-selected', this.listShowing);
238246
}
239247
});
240248
</script>

0 commit comments

Comments
 (0)