From 1d02a0d6c1f237320917bd0e3eefec0102269d64 Mon Sep 17 00:00:00 2001 From: Tim Roes Date: Wed, 30 Jun 2021 13:37:16 +0200 Subject: [PATCH] Fix telemetry advanced setting style (#103838) --- ...telemetry_management_section.test.tsx.snap | 246 +++++++++--------- .../telemetry_management_section.tsx | 85 +++--- 2 files changed, 160 insertions(+), 171 deletions(-) diff --git a/src/plugins/telemetry_management_section/public/components/__snapshots__/telemetry_management_section.test.tsx.snap b/src/plugins/telemetry_management_section/public/components/__snapshots__/telemetry_management_section.test.tsx.snap index c4cee25a33b7f..014142a2a3d06 100644 --- a/src/plugins/telemetry_management_section/public/components/__snapshots__/telemetry_management_section.test.tsx.snap +++ b/src/plugins/telemetry_management_section/public/components/__snapshots__/telemetry_management_section.test.tsx.snap @@ -47,139 +47,137 @@ exports[`TelemetryManagementSectionComponent does not show the endpoint link whe exports[`TelemetryManagementSectionComponent renders as expected 1`] = ` - - - - -

- -

-
-
-
- + <_EuiSplitPanelInner + color="subdued" + > + +

- - , - } - } + defaultMessage="Usage Data" + id="telemetry.usageDataTitle" + values={Object {}} /> -

- } - /> - - -

- - - , - } +

+
+ + <_EuiSplitPanelInner> + + + + , } - /> -

-

- - - , - "endpointSecurityData": - - , + } + /> +

+ } + /> + + +

+ + + , + } } - } - /> -

- , - "displayName": "Provide usage statistics", - "isCustom": true, - "isOverridden": false, - "name": "telemetry:enabled", - "requiresPageReload": false, - "type": "boolean", - "value": true, + /> +

+

+ + + , + "endpointSecurityData": + + , + } + } + /> +

+ , + "displayName": "Provide usage statistics", + "isCustom": true, + "isOverridden": false, + "name": "telemetry:enabled", + "requiresPageReload": false, + "type": "boolean", + "value": true, + } } - } - toasts={ - Object { - "add": [MockFunction], - "addDanger": [MockFunction], - "addError": [MockFunction], - "addInfo": [MockFunction], - "addSuccess": [MockFunction], - "addWarning": [MockFunction], - "get$": [MockFunction], - "remove": [MockFunction], + toasts={ + Object { + "add": [MockFunction], + "addDanger": [MockFunction], + "addError": [MockFunction], + "addInfo": [MockFunction], + "addSuccess": [MockFunction], + "addWarning": [MockFunction], + "get$": [MockFunction], + "remove": [MockFunction], + } } - } - /> + /> +
-
+
`; diff --git a/src/plugins/telemetry_management_section/public/components/telemetry_management_section.tsx b/src/plugins/telemetry_management_section/public/components/telemetry_management_section.tsx index e9ddc4cf82dfc..b0d1b42a9b892 100644 --- a/src/plugins/telemetry_management_section/public/components/telemetry_management_section.tsx +++ b/src/plugins/telemetry_management_section/public/components/telemetry_management_section.tsx @@ -7,16 +7,7 @@ */ import React, { Component, Fragment } from 'react'; -import { - EuiCallOut, - EuiPanel, - EuiForm, - EuiFlexGroup, - EuiFlexItem, - EuiLink, - EuiSpacer, - EuiText, -} from '@elastic/eui'; +import { EuiCallOut, EuiForm, EuiLink, EuiSpacer, EuiSplitPanel, EuiTitle } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n/react'; import { i18n } from '@kbn/i18n'; @@ -116,46 +107,46 @@ export class TelemetryManagementSection extends Component { )} - + - - - -

- -

-
-
-
+ + +

+ +

+
+
- {this.maybeGetAppliesSettingMessage()} - - + + {this.maybeGetAppliesSettingMessage()} + + +
-
+ ); }