From 3faccaa51a935901f41e7c4842b80f67732df80b Mon Sep 17 00:00:00 2001
From: Cee Chen
Date: Thu, 23 May 2024 12:45:18 -0700
Subject: [PATCH 1/3] Address previous TODO / have EuiFormLayout set the icon
affordance CSS variables on wrapper
- while accounting for EuiFormLayoutDelineated's static icons
---
.../form_controls/form_controls_example.js | 10 ---------
.../components/date_picker/date_picker.tsx | 12 -----------
.../_form_control_layout.scss | 1 +
.../form/form_control_layout/_num_icons.ts | 2 +-
.../form_control_layout.tsx | 21 ++++++++++++++++++-
5 files changed, 22 insertions(+), 24 deletions(-)
diff --git a/packages/eui/src-docs/src/views/form_controls/form_controls_example.js b/packages/eui/src-docs/src/views/form_controls/form_controls_example.js
index 04e18077c66..35e8b168289 100644
--- a/packages/eui/src-docs/src/views/form_controls/form_controls_example.js
+++ b/packages/eui/src-docs/src/views/form_controls/form_controls_example.js
@@ -477,16 +477,6 @@ export const FormControlsExample = {
the controlOnly and type props
of EuiFieldText as the wrapped control.
-
-
-
- The padding on the input itself doesn’t
- take into account the presence of the various icons supported by{' '}
- EuiFormControlLayout. Any input component
- provided to EuiFormControlLayout is responsible
- for its own padding.
-