Skip to content

Commit

Permalink
[Doc-Table] Import styles into JS where possible (#65329) (#65518)
Browse files Browse the repository at this point in the history
Fixes styles and overflow table vis
  • Loading branch information
cchaos authored May 6, 2020
1 parent a26a63c commit 538eeb3
Show file tree
Hide file tree
Showing 18 changed files with 8 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
@import 'directives/index';
@import 'doc_table/index';
@import 'context/index';
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* 1. Stack content vertically so the table can scroll when its constrained by a fixed container height.
*/
doc-table {
@include euiScrollBar;
overflow: auto;
flex: 1 1 100%;
flex-direction: column; /* 1 */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { dispatchRenderComplete } from '../../../../../kibana_utils/public';
// @ts-ignore
import { getLimitedSearchResultsMessage } from './doc_table_strings';
import { getServices } from '../../../kibana_services';
import './index.scss';

export interface LazyScope extends ng.IScope {
[key: string]: any;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
@import '../../mixins';

@import 'doc_table';
@import 'components/index';

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
import './doc_viewer.scss';
import React from 'react';
import { EuiTabbedContent } from '@elastic/eui';
import { getDocViewsRegistry } from '../../../kibana_services';
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
import './fetch_error.scss';
import React, { Fragment } from 'react';
import { FormattedMessage, I18nProvider } from '@kbn/i18n/react';
import { EuiFlexGroup, EuiFlexItem, EuiCallOut, EuiCodeBlock, EuiSpacer } from '@elastic/eui';
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
import './discover_sidebar.scss';
import React, { useCallback, useEffect, useState, useMemo } from 'react';
import { i18n } from '@kbn/i18n';
import { EuiButtonIcon, EuiTitle } from '@elastic/eui';
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
import './search_embeddable.scss';
import angular from 'angular';
import _ from 'lodash';
import * as Rx from 'rxjs';
Expand Down
2 changes: 0 additions & 2 deletions src/plugins/discover/public/application/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,4 @@
// monChart__legend--small
// monChart__legend-isLoading

@import 'components/index';
@import 'angular/index';
@import 'embeddable/index';

0 comments on commit 538eeb3

Please sign in to comment.