From 6648335d514152638bd9ac57bba5baaec40c392b Mon Sep 17 00:00:00 2001 From: Tim Sullivan Date: Thu, 3 Aug 2017 10:00:16 -0700 Subject: [PATCH] [Accessibilty] Make kbn_accessible_click part of autoload/all (#13299) * [Accessibility] Ensure kbn-accessible-click is part of autoload/all * remove unecessary kbn_accessible_click imports * use an index.js file to expose inner directives --- src/core_plugins/kibana/public/dashboard/index.js | 1 - .../public/discover/components/field_chooser/discover_field.js | 1 - src/core_plugins/timelion/public/app.js | 1 - src/ui/public/accessibility/index.js | 1 + src/ui/public/autoload/accessibility.js | 1 + src/ui/public/autoload/all.js | 1 + 6 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 src/ui/public/accessibility/index.js create mode 100644 src/ui/public/autoload/accessibility.js diff --git a/src/core_plugins/kibana/public/dashboard/index.js b/src/core_plugins/kibana/public/dashboard/index.js index d4359db84c00d..fbcb1ae500260 100644 --- a/src/core_plugins/kibana/public/dashboard/index.js +++ b/src/core_plugins/kibana/public/dashboard/index.js @@ -3,7 +3,6 @@ import 'plugins/kibana/dashboard/saved_dashboard/saved_dashboards'; import 'plugins/kibana/dashboard/styles/index.less'; import 'plugins/kibana/dashboard/dashboard_config'; import uiRoutes from 'ui/routes'; -import 'ui/accessibility/kbn_accessible_click'; import dashboardListingTemplate from './listing/dashboard_listing.html'; import { DashboardListingController } from './listing/dashboard_listing'; diff --git a/src/core_plugins/kibana/public/discover/components/field_chooser/discover_field.js b/src/core_plugins/kibana/public/discover/components/field_chooser/discover_field.js index fe7b0fa77970f..cd7b5d6fd1e61 100644 --- a/src/core_plugins/kibana/public/discover/components/field_chooser/discover_field.js +++ b/src/core_plugins/kibana/public/discover/components/field_chooser/discover_field.js @@ -3,7 +3,6 @@ import html from 'plugins/kibana/discover/components/field_chooser/discover_fiel import _ from 'lodash'; import 'ui/directives/css_truncate'; import 'ui/directives/field_name'; -import 'ui/accessibility/kbn_accessible_click'; import detailsHtml from 'plugins/kibana/discover/components/field_chooser/lib/detail_views/string.html'; import { uiModules } from 'ui/modules'; const app = uiModules.get('apps/discover'); diff --git a/src/core_plugins/timelion/public/app.js b/src/core_plugins/timelion/public/app.js index a5850886857eb..3541a4c408bf2 100644 --- a/src/core_plugins/timelion/public/app.js +++ b/src/core_plugins/timelion/public/app.js @@ -4,7 +4,6 @@ import moment from 'moment-timezone'; import { DocTitleProvider } from 'ui/doc_title'; import { SavedObjectRegistryProvider } from 'ui/saved_objects/saved_object_registry'; import { notify } from 'ui/notify'; -import 'ui/accessibility/kbn_accessible_click'; require('plugins/timelion/directives/cells/cells'); require('plugins/timelion/directives/fixed_element'); diff --git a/src/ui/public/accessibility/index.js b/src/ui/public/accessibility/index.js new file mode 100644 index 0000000000000..906b3f2397b6c --- /dev/null +++ b/src/ui/public/accessibility/index.js @@ -0,0 +1 @@ +import './kbn_accessible_click'; diff --git a/src/ui/public/autoload/accessibility.js b/src/ui/public/autoload/accessibility.js new file mode 100644 index 0000000000000..7d2642c61e179 --- /dev/null +++ b/src/ui/public/autoload/accessibility.js @@ -0,0 +1 @@ +import '../accessibility'; diff --git a/src/ui/public/autoload/all.js b/src/ui/public/autoload/all.js index 98b0b4961154c..12951c84346e7 100644 --- a/src/ui/public/autoload/all.js +++ b/src/ui/public/autoload/all.js @@ -1,3 +1,4 @@ +import './accessibility'; import './modules'; import './directives'; import './filters';