Skip to content

Commit

Permalink
Set id on body tag
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
  • Loading branch information
Tyler Smalley committed Sep 20, 2018
1 parent 01fc786 commit 22a6686
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/ui/public/chrome/chrome.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ const waitForBootstrap = new Promise(resolve => {
require('uiExports/chromeNavControls');
require('uiExports/hacks');

// sets attribute on body for stylesheet sandboxing
document.body.setAttribute('id', `${internals.app.id}-app`);

chrome.setupAngular();
targetDomElement.setAttribute('id', 'kibana-body');
targetDomElement.setAttribute('kbn-chrome', 'true');
Expand Down
2 changes: 0 additions & 2 deletions src/ui/public/chrome/directives/kbn_chrome.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ export function kbnChromeProvider(chrome, internals) {
const $content = $(require('./kbn_chrome.html'));
const $app = $content.find('.application');

$app.attr('id', `${internals.app.id}-app`);

if (internals.rootController) {
$app.attr('ng-controller', internals.rootController);
}
Expand Down

0 comments on commit 22a6686

Please sign in to comment.