Introduce gr-label-info element

This element will be embedded inside a gr-hovercard, and will replace a
large amount of functionality in the change metadata.

Some of the code is copied from the change metadata. It will be deleted
from there in a descendant change.

Change-Id: I10a158dfd7e303e2a15b918e1980680b7f917e59
This commit is contained in:
Kasper Nilsson
2018-06-08 12:07:32 -07:00
parent 26d96c4c95
commit 5072d85704
5 changed files with 553 additions and 1 deletions

View File

@@ -35,7 +35,7 @@ limitations under the License.
});
</script>
<script>
// eslint-disable-next-line no-unused-vars
/* eslint-disable no-unused-vars */
const mockPromise = () => {
let res;
const promise = new Promise(resolve => {
@@ -44,6 +44,8 @@ limitations under the License.
promise.resolve = res;
return promise;
};
const isHidden = el => getComputedStyle(el).display === 'none';
/* eslint-enable no-unused-vars */
</script>
<script>
(function() {