From 16eb6fd07b7289e2cc1623427a4142fc0ce436c8 Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Tue, 8 Sep 2015 14:03:59 -0700 Subject: [PATCH] fix(react-remote): Put a title on the container region Fixes T3512 --- src/react-remote/react-remote-parent.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/react-remote/react-remote-parent.js b/src/react-remote/react-remote-parent.js index f277ffb98..1246f754f 100644 --- a/src/react-remote/react-remote-parent.js +++ b/src/react-remote/react-remote-parent.js @@ -168,6 +168,12 @@ reactRemoteContainer.style.zIndex = 10000; reactRemoteContainer.style.border = '5px solid orange'; document.body.appendChild(reactRemoteContainer); +var reactRemoteContainerTitle = document.createElement('div'); +reactRemoteContainerTitle.style.color = 'white'; +reactRemoteContainerTitle.style.backgroundColor = 'orange'; +reactRemoteContainerTitle.innerText = 'React Remote Container'; +reactRemoteContainer.appendChild(reactRemoteContainerTitle); + var toggleContainerVisible = function() { if (reactRemoteContainer.style.left === '-10000px') { reactRemoteContainer.style.left = 0;