Skip to content

Commit 22a6686

Browse files
committed
Set id on body tag
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
1 parent 01fc786 commit 22a6686

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/ui/public/chrome/chrome.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ const waitForBootstrap = new Promise(resolve => {
8383
require('uiExports/chromeNavControls');
8484
require('uiExports/hacks');
8585

86+
// sets attribute on body for stylesheet sandboxing
87+
document.body.setAttribute('id', `${internals.app.id}-app`);
88+
8689
chrome.setupAngular();
8790
targetDomElement.setAttribute('id', 'kibana-body');
8891
targetDomElement.setAttribute('kbn-chrome', 'true');

src/ui/public/chrome/directives/kbn_chrome.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ export function kbnChromeProvider(chrome, internals) {
4444
const $content = $(require('./kbn_chrome.html'));
4545
const $app = $content.find('.application');
4646

47-
$app.attr('id', `${internals.app.id}-app`);
48-
4947
if (internals.rootController) {
5048
$app.attr('ng-controller', internals.rootController);
5149
}

0 commit comments

Comments
 (0)