From 4df28620ac4f5289bcae3dbc3c003aa328d4bf92 Mon Sep 17 00:00:00 2001 From: Andrea Del Rio Date: Sun, 6 Dec 2020 07:46:57 -0500 Subject: [PATCH 1/6] wip --- .../src/views/form_controls/form_control_layout.js | 2 +- .../form/form_control_layout/form_control_layout.tsx | 3 ++- .../form_control_layout_custom_icon.tsx | 4 ++++ .../form_control_layout_icons.tsx | 12 +++++++++--- 4 files changed, 16 insertions(+), 5 deletions(-) diff --git a/src-docs/src/views/form_controls/form_control_layout.js b/src-docs/src/views/form_controls/form_control_layout.js index c58160571f0..a225a7b7037 100644 --- a/src-docs/src/views/form_controls/form_control_layout.js +++ b/src-docs/src/views/form_controls/form_control_layout.js @@ -10,7 +10,7 @@ import { export default () => ( - + { fullWidth, isLoading, isDisabled, - compressed, + compressed = false, className, prepend, append, @@ -107,6 +107,7 @@ export class EuiFormControlLayout extends Component { diff --git a/src/components/form/form_control_layout/form_control_layout_custom_icon.tsx b/src/components/form/form_control_layout/form_control_layout_custom_icon.tsx index e3b6f5cd990..c7f6ac77fc9 100644 --- a/src/components/form/form_control_layout/form_control_layout_custom_icon.tsx +++ b/src/components/form/form_control_layout/form_control_layout_custom_icon.tsx @@ -33,6 +33,7 @@ export type EuiFormControlLayoutCustomIconProps = CommonProps & HTMLAttributes > & { type: IconType; + compressed?: boolean; iconRef?: | string | ((el: HTMLButtonElement | HTMLSpanElement | null) => void); @@ -43,6 +44,7 @@ export const EuiFormControlLayoutCustomIcon: FunctionComponent { const classes = classNames('euiFormControlLayoutCustomIcon', className, { @@ -60,6 +62,7 @@ export const EuiFormControlLayoutCustomIcon: FunctionComponent