From c2c256845140b08052bdd3d4fd14b3cce13b78a3 Mon Sep 17 00:00:00 2001 From: CJ Cenizal Date: Mon, 4 Jun 2018 14:57:45 -0700 Subject: [PATCH] Break up SCSS into multiple files and improve class names. --- .../form_control_layout.test.js.snap | 14 +++++------ .../_form_control_layout_clear_button.scss | 3 +++ .../_form_control_layout_custom_icon.scss | 20 +++++++++++++++ .../_form_control_layout_icons.scss | 25 ------------------- .../form/form_control_layout/_index.scss | 2 ++ .../form_control_layout_clear_button.js | 6 ++--- .../form_control_layout_custom_icon.js | 5 ++-- .../form_control_layout_icons.js | 7 ++---- 8 files changed, 40 insertions(+), 42 deletions(-) create mode 100644 src/components/form/form_control_layout/_form_control_layout_clear_button.scss create mode 100644 src/components/form/form_control_layout/_form_control_layout_custom_icon.scss diff --git a/src/components/form/form_control_layout/__snapshots__/form_control_layout.test.js.snap b/src/components/form/form_control_layout/__snapshots__/form_control_layout.test.js.snap index e5a1423805a2..25d86d36c042 100644 --- a/src/components/form/form_control_layout/__snapshots__/form_control_layout.test.js.snap +++ b/src/components/form/form_control_layout/__snapshots__/form_control_layout.test.js.snap @@ -18,12 +18,12 @@ exports[`EuiFormControlLayout props clear onClick is rendered 1`] = ` class="euiFormControlLayoutIcons euiFormControlLayoutIcons--right" > diff --git a/src/components/form/form_control_layout/form_control_layout_icons.js b/src/components/form/form_control_layout/form_control_layout_icons.js index 86dd6ca27d75..ab7fd14d30de 100644 --- a/src/components/form/form_control_layout/form_control_layout_icons.js +++ b/src/components/form/form_control_layout/form_control_layout_icons.js @@ -63,7 +63,7 @@ export class EuiFormControlLayoutIcons extends Component { ref: iconRef, side, // eslint-disable-line no-unused-vars ...iconRest - } = iconProps + } = iconProps; return ( + ); } }