From a9b4fc8da64c9f612e2912011f12a7b7dae102d2 Mon Sep 17 00:00:00 2001 From: Trevor Pierce <1Copenut@users.noreply.github.com> Date: Tue, 30 Apr 2024 15:17:32 -0500 Subject: [PATCH] [TASK][Security Serverless]: Add semantic headings to Fleet Integration forms (#181922) Refactored the Fleet "Add Integration" form to properly nest headings by level. --- .../agent_policy_advanced_fields/index.tsx | 44 +++++++++---------- .../components/agent_policy_integration.tsx | 4 +- .../components/package_policy_input_panel.tsx | 7 +-- .../steps/step_define_package_policy.tsx | 4 +- .../single_page_layout/index.tsx | 2 + 5 files changed, 32 insertions(+), 29 deletions(-) diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/index.tsx b/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/index.tsx index 08049f6d81669..b3f3236772ffd 100644 --- a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/index.tsx +++ b/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/components/agent_policy_advanced_fields/index.tsx @@ -117,12 +117,12 @@ export const AgentPolicyAdvancedOptionsContent: React.FunctionComponent = () => ( +

-

+ } description={ = <> +

-

+ } description={ =
+

-

+ } description={ =
+

-

+ } description={ = +

= )} -

+ } description={ =
+

-

+ } description={ =
+

-

+ } description={ =
+

-

+ } description={ =
+

-

+ } description={ =
+

= size="s" /> -

+ } description={ =
+

  -

+ } description={ = ({ +

-

+ } description={ - -

{packageInput.title || packageInput.type}

-
+ +

{packageInput.title || packageInput.type}

+
} diff --git a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_define_package_policy.tsx b/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_define_package_policy.tsx index 289508b516fcc..4f50a0c1cc5f2 100644 --- a/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_define_package_policy.tsx +++ b/x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/components/steps/step_define_package_policy.tsx @@ -106,12 +106,12 @@ export const StepDefinePackagePolicy: React.FunctionComponent<{ )} +

-

+ } description={