-
Notifications
You must be signed in to change notification settings - Fork 892
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[new platform] render legacy platform into a container (#21248)
* [core/public/legacyPlatform] render into a child of the rootDomElement * [kbn-chrome] use #kibana-body selector for ensuring root height * after feedback in #20752, clear elements by setting textContent * [browserTests] mount CoreSystem in a child, we require stuff in <body> * [core/public] ensure the rootDomElement is full-screen * add some comments tieing together root style rules * use `readonly` for unchanged properties * avoid unnecessary recreation of default param * comment about why coreSystem is not rendered into body in the tests * use more destructuring * rename argument in callback type signature * fix typo * [core/public/styles] switch from less to css
- Loading branch information
Spencer
authored
Aug 7, 2018
1 parent
5e5b2ce
commit 1a99df7
Showing
8 changed files
with
100 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/** | ||
* designed to emulate root-element stretching and overflow | ||
* prevention previously handled in kbn_chrome.less | ||
*/ | ||
.coreSystemRootDomElement { | ||
overflow-x: hidden; | ||
min-width: 100%; | ||
min-height: 100%; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 3 additions & 8 deletions
11
src/core/public/legacy_platform/__snapshots__/legacy_platform_service.test.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,19 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`#stop() destroys the angular scope and empties the rootDomElement if angular is bootstraped to rootDomElement 1`] = ` | ||
exports[`#stop() destroys the angular scope and empties the targetDomElement if angular is bootstraped to targetDomElement 1`] = ` | ||
<div | ||
class="ng-scope" | ||
/> | ||
`; | ||
|
||
exports[`#stop() does nothing if angular was not bootstrapped to rootDomElement 1`] = ` | ||
exports[`#stop() does nothing if angular was not bootstrapped to targetDomElement 1`] = ` | ||
<div> | ||
<h1> | ||
foo | ||
this should not be removed | ||
</h1> | ||
<h2> | ||
bar | ||
</h2> | ||
</div> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters