From 0022e1dc82c18e213a9db88c6ec12a0a71307bc2 Mon Sep 17 00:00:00 2001 From: Michael DeFazio Date: Wed, 24 Jul 2019 16:04:16 -0400 Subject: [PATCH 1/4] Fix #1989 --- .../horizontal_rule_example.js | 4 +- src-docs/src/views/spacer/spacer_example.js | 2 +- .../__snapshots__/context_menu.test.js.snap | 66 +- .../context_menu_panel.test.js.snap | 66 +- .../icon/__snapshots__/icon.test.tsx.snap | 624 ++++-------------- src/components/icon/assets/apm_trace.js | 8 +- src/components/icon/assets/apm_trace.svg | 5 +- src/components/icon/assets/apps.js | 8 +- src/components/icon/assets/apps.svg | 7 +- src/components/icon/assets/arrow_down.js | 11 +- src/components/icon/assets/arrow_down.svg | 5 +- src/components/icon/assets/arrow_left.js | 11 +- src/components/icon/assets/arrow_left.svg | 5 +- src/components/icon/assets/arrow_right.js | 11 +- src/components/icon/assets/arrow_right.svg | 5 +- src/components/icon/assets/arrow_up.js | 11 +- src/components/icon/assets/arrow_up.svg | 5 +- .../icon/assets/boxes_horizontal.js | 8 +- .../icon/assets/boxes_horizontal.svg | 5 +- src/components/icon/assets/boxes_vertical.js | 11 +- src/components/icon/assets/boxes_vertical.svg | 7 +- src/components/icon/assets/brush.js | 11 +- src/components/icon/assets/brush.svg | 7 +- src/components/icon/assets/console.js | 8 +- src/components/icon/assets/console.svg | 5 +- src/components/icon/assets/copy.js | 8 +- src/components/icon/assets/copy.svg | 5 +- src/components/icon/assets/document.js | 8 +- src/components/icon/assets/document.svg | 7 +- src/components/icon/assets/dot.js | 5 +- src/components/icon/assets/dot.svg | 7 +- .../icon/assets/editor_align_center.js | 8 +- .../icon/assets/editor_align_center.svg | 7 +- .../icon/assets/editor_align_left.js | 8 +- .../icon/assets/editor_align_left.svg | 7 +- .../icon/assets/editor_align_right.js | 8 +- .../icon/assets/editor_align_right.svg | 7 +- src/components/icon/assets/editor_bold.js | 8 +- src/components/icon/assets/editor_bold.svg | 7 +- src/components/icon/assets/editor_comment.js | 8 +- src/components/icon/assets/editor_comment.svg | 7 +- src/components/icon/assets/editor_heading.js | 8 +- src/components/icon/assets/editor_heading.svg | 7 +- src/components/icon/assets/editor_italic.js | 8 +- src/components/icon/assets/editor_italic.svg | 7 +- src/components/icon/assets/editor_link.js | 8 +- src/components/icon/assets/editor_link.svg | 7 +- .../icon/assets/editor_ordered_list.js | 8 +- .../icon/assets/editor_ordered_list.svg | 7 +- src/components/icon/assets/editor_strike.js | 8 +- src/components/icon/assets/editor_strike.svg | 7 +- src/components/icon/assets/editor_table.js | 8 +- src/components/icon/assets/editor_table.svg | 7 +- .../icon/assets/editor_unordered_list.js | 8 +- .../icon/assets/editor_unordered_list.svg | 7 +- src/components/icon/assets/email.js | 11 +- src/components/icon/assets/email.svg | 5 +- src/components/icon/assets/full_screen.js | 11 +- src/components/icon/assets/full_screen.svg | 5 +- src/components/icon/assets/gear.js | 8 +- src/components/icon/assets/gear.svg | 7 +- src/components/icon/assets/grid.js | 8 +- src/components/icon/assets/grid.svg | 7 +- src/components/icon/assets/help.js | 11 +- src/components/icon/assets/help.svg | 7 +- src/components/icon/assets/map_marker.js | 8 +- src/components/icon/assets/map_marker.svg | 7 +- src/components/icon/assets/paint.js | 8 +- src/components/icon/assets/paint.svg | 7 +- src/components/icon/assets/pencil.js | 11 +- src/components/icon/assets/pencil.svg | 7 +- src/components/icon/assets/search.js | 8 +- src/components/icon/assets/search.svg | 7 +- src/components/icon/assets/tear.js | 8 +- src/components/icon/assets/tear.svg | 7 +- src/components/icon/assets/trash.js | 8 +- src/components/icon/assets/trash.svg | 7 +- src/components/icon/assets/vis_controls.js | 8 +- src/components/icon/assets/vis_controls.svg | 7 +- 79 files changed, 253 insertions(+), 1071 deletions(-) diff --git a/src-docs/src/views/horizontal_rule/horizontal_rule_example.js b/src-docs/src/views/horizontal_rule/horizontal_rule_example.js index 6938db5d8e3..026873ced8e 100644 --- a/src-docs/src/views/horizontal_rule/horizontal_rule_example.js +++ b/src-docs/src/views/horizontal_rule/horizontal_rule_example.js @@ -14,8 +14,8 @@ import HorizontalRuleMargin from './horizontal_rule_margin'; const horizontalRuleMarginSource = require('!!raw-loader!./horizontal_rule_margin'); const horizontalRuleMarginHtml = renderToHtml(HorizontalRuleMargin); -const horizontalRuleSnippet = ``; -const horizontalRuleMarginSnippet = ``; +const horizontalRuleSnippet = ''; +const horizontalRuleMarginSnippet = ''; export const HorizontalRuleExample = { title: 'Horizontal Rule', diff --git a/src-docs/src/views/spacer/spacer_example.js b/src-docs/src/views/spacer/spacer_example.js index 756ceaa8e5a..a3845f5210d 100644 --- a/src-docs/src/views/spacer/spacer_example.js +++ b/src-docs/src/views/spacer/spacer_example.js @@ -15,7 +15,7 @@ import Spacer from './spacer'; const spacerSource = require('!!raw-loader!./spacer'); const spacerHtml = renderToHtml(Spacer); -const spacerSnippet = ``; +const spacerSnippet = ''; export const SpacerExample = { title: 'Spacer', diff --git a/src/components/context_menu/__snapshots__/context_menu.test.js.snap b/src/components/context_menu/__snapshots__/context_menu.test.js.snap index c58d030438a..d3829f8e2fb 100644 --- a/src/components/context_menu/__snapshots__/context_menu.test.js.snap +++ b/src/components/context_menu/__snapshots__/context_menu.test.js.snap @@ -33,16 +33,9 @@ exports[`EuiContextMenu props panels and initialPanelId allows you to click the width="16" xmlns="http://www.w3.org/2000/svg" > - - - - - - - - - - - - - - - - @@ -210,16 +182,9 @@ exports[`EuiContextMenu props panels and initialPanelId allows you to click the width="16" xmlns="http://www.w3.org/2000/svg" > - - - - @@ -244,16 +209,9 @@ exports[`EuiContextMenu props panels and initialPanelId allows you to click the width="16" xmlns="http://www.w3.org/2000/svg" > - - - - diff --git a/src/components/context_menu/__snapshots__/context_menu_panel.test.js.snap b/src/components/context_menu/__snapshots__/context_menu_panel.test.js.snap index 26e477cc90f..cacbe2774df 100644 --- a/src/components/context_menu/__snapshots__/context_menu_panel.test.js.snap +++ b/src/components/context_menu/__snapshots__/context_menu_panel.test.js.snap @@ -33,16 +33,9 @@ exports[`EuiContextMenu props panels and initialPanelId allows you to click the width="16" xmlns="http://www.w3.org/2000/svg" > - - - - - - - - - - - - - - - - @@ -210,16 +182,9 @@ exports[`EuiContextMenu props panels and initialPanelId allows you to click the width="16" xmlns="http://www.w3.org/2000/svg" > - - - - @@ -244,16 +209,9 @@ exports[`EuiContextMenu props panels and initialPanelId allows you to click the width="16" xmlns="http://www.w3.org/2000/svg" > - - - - diff --git a/src/components/icon/__snapshots__/icon.test.tsx.snap b/src/components/icon/__snapshots__/icon.test.tsx.snap index 33271e7d2f4..345fb265c91 100644 --- a/src/components/icon/__snapshots__/icon.test.tsx.snap +++ b/src/components/icon/__snapshots__/icon.test.tsx.snap @@ -11,14 +11,8 @@ exports[`EuiIcon is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -33,14 +27,8 @@ exports[`EuiIcon props color #885522 is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -55,14 +43,8 @@ exports[`EuiIcon props color #fde is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -76,14 +58,8 @@ exports[`EuiIcon props color accent is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -97,14 +73,8 @@ exports[`EuiIcon props color danger is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -118,14 +88,8 @@ exports[`EuiIcon props color default is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -139,14 +103,8 @@ exports[`EuiIcon props color ghost is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -161,14 +119,8 @@ exports[`EuiIcon props color hsla(270, 60%, 70%, 0.9) is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -182,14 +134,8 @@ exports[`EuiIcon props color primary is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -204,14 +150,8 @@ exports[`EuiIcon props color rgb(100, 150, 200) is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -225,14 +165,8 @@ exports[`EuiIcon props color secondary is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -246,14 +180,8 @@ exports[`EuiIcon props color subdued is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -267,14 +195,8 @@ exports[`EuiIcon props color success is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -288,14 +210,8 @@ exports[`EuiIcon props color text is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -309,14 +225,8 @@ exports[`EuiIcon props color warning is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -331,14 +241,8 @@ exports[`EuiIcon props other props are passed through to the icon 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -352,14 +256,8 @@ exports[`EuiIcon props size \${size} is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -373,14 +271,8 @@ exports[`EuiIcon props size \${size} is rendered 2`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -394,14 +286,8 @@ exports[`EuiIcon props size \${size} is rendered 3`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -415,14 +301,8 @@ exports[`EuiIcon props size \${size} is rendered 4`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -436,14 +316,8 @@ exports[`EuiIcon props size \${size} is rendered 5`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -457,14 +331,8 @@ exports[`EuiIcon props size \${size} is rendered 6`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -479,14 +347,8 @@ exports[`EuiIcon props tabIndex renders focusable="false" when -1 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -500,14 +362,8 @@ exports[`EuiIcon props tabIndex renders focusable="false" when not provided 1`] width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -522,14 +378,8 @@ exports[`EuiIcon props tabIndex renders focusable="true" when 0 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -634,14 +484,8 @@ exports[`EuiIcon props type apmTrace is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -655,14 +499,8 @@ exports[`EuiIcon props type apps is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -676,15 +514,9 @@ exports[`EuiIcon props type arrowDown is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -698,16 +530,9 @@ exports[`EuiIcon props type arrowLeft is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -721,16 +546,9 @@ exports[`EuiIcon props type arrowRight is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -744,16 +562,9 @@ exports[`EuiIcon props type arrowUp is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -847,14 +658,8 @@ exports[`EuiIcon props type boxesHorizontal is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -868,14 +673,9 @@ exports[`EuiIcon props type boxesVertical is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -919,14 +719,9 @@ exports[`EuiIcon props type brush is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -1094,14 +889,8 @@ exports[`EuiIcon props type console is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -1169,14 +958,8 @@ exports[`EuiIcon props type copy is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - - - - - `; @@ -1486,16 +1263,10 @@ exports[`EuiIcon props type dot is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -1509,14 +1280,8 @@ exports[`EuiIcon props type editorAlignCenter is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -1530,14 +1295,8 @@ exports[`EuiIcon props type editorAlignLeft is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -1551,14 +1310,8 @@ exports[`EuiIcon props type editorAlignRight is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -1572,14 +1325,8 @@ exports[`EuiIcon props type editorBold is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -1608,14 +1355,8 @@ exports[`EuiIcon props type editorComment is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -1629,14 +1370,8 @@ exports[`EuiIcon props type editorHeading is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -1650,14 +1385,8 @@ exports[`EuiIcon props type editorItalic is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -1671,14 +1400,8 @@ exports[`EuiIcon props type editorLink is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -1692,14 +1415,8 @@ exports[`EuiIcon props type editorOrderedList is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -1728,14 +1445,8 @@ exports[`EuiIcon props type editorStrike is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -1749,14 +1460,8 @@ exports[`EuiIcon props type editorTable is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -1800,14 +1505,8 @@ exports[`EuiIcon props type editorUnorderedList is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -1821,15 +1520,9 @@ exports[`EuiIcon props type email is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -2076,15 +1769,9 @@ exports[`EuiIcon props type fullScreen is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -2098,14 +1785,8 @@ exports[`EuiIcon props type gear is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -2219,14 +1900,8 @@ exports[`EuiIcon props type grid is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -2308,15 +1983,9 @@ exports[`EuiIcon props type help is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -4780,15 +4449,8 @@ exports[`EuiIcon props type mapMarker is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -5072,14 +4734,9 @@ exports[`EuiIcon props type pencil is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -5307,14 +4964,8 @@ exports[`EuiIcon props type search is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -5896,14 +5547,8 @@ exports[`EuiIcon props type tear is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -6428,14 +6073,8 @@ exports[`EuiIcon props type trash is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; @@ -6588,15 +6227,8 @@ exports[`EuiIcon props type visControls is rendered 1`] = ` width="16" xmlns="http://www.w3.org/2000/svg" > - - - - `; diff --git a/src/components/icon/assets/apm_trace.js b/src/components/icon/assets/apm_trace.js index 562086a8ae0..30187d01f3c 100644 --- a/src/components/icon/assets/apm_trace.js +++ b/src/components/icon/assets/apm_trace.js @@ -7,13 +7,7 @@ const EuiIconApmTrace = props => ( viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" {...props}> - - - - + ); diff --git a/src/components/icon/assets/apm_trace.svg b/src/components/icon/assets/apm_trace.svg index 22e4002500f..ddc5da2efa3 100644 --- a/src/components/icon/assets/apm_trace.svg +++ b/src/components/icon/assets/apm_trace.svg @@ -1,6 +1,3 @@ - - - - + diff --git a/src/components/icon/assets/apps.js b/src/components/icon/assets/apps.js index ba273a97223..01470684338 100644 --- a/src/components/icon/assets/apps.js +++ b/src/components/icon/assets/apps.js @@ -7,13 +7,7 @@ const EuiIconApps = props => ( viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" {...props}> - - - - + ); diff --git a/src/components/icon/assets/apps.svg b/src/components/icon/assets/apps.svg index fe38219276c..cc09b28da26 100644 --- a/src/components/icon/assets/apps.svg +++ b/src/components/icon/assets/apps.svg @@ -1,8 +1,3 @@ - - - - - - + diff --git a/src/components/icon/assets/arrow_down.js b/src/components/icon/assets/arrow_down.js index d964ecea3f6..cddc3a015d9 100644 --- a/src/components/icon/assets/arrow_down.js +++ b/src/components/icon/assets/arrow_down.js @@ -7,13 +7,10 @@ const EuiIconArrowDown = props => ( viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" {...props}> - - - - + ); diff --git a/src/components/icon/assets/arrow_down.svg b/src/components/icon/assets/arrow_down.svg index 9acaffeeb0c..bb081c2a808 100644 --- a/src/components/icon/assets/arrow_down.svg +++ b/src/components/icon/assets/arrow_down.svg @@ -1,8 +1,5 @@ - - - - + diff --git a/src/components/icon/assets/arrow_left.js b/src/components/icon/assets/arrow_left.js index 29635c8b6a6..38d8be2297b 100644 --- a/src/components/icon/assets/arrow_left.js +++ b/src/components/icon/assets/arrow_left.js @@ -7,16 +7,9 @@ const EuiIconArrowLeft = props => ( viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" {...props}> - - - - ); diff --git a/src/components/icon/assets/arrow_left.svg b/src/components/icon/assets/arrow_left.svg index 20c9459af31..ccd3d335cac 100644 --- a/src/components/icon/assets/arrow_left.svg +++ b/src/components/icon/assets/arrow_left.svg @@ -1,8 +1,5 @@ - - - - + diff --git a/src/components/icon/assets/arrow_right.js b/src/components/icon/assets/arrow_right.js index 3fe93e23439..c634c0fda18 100644 --- a/src/components/icon/assets/arrow_right.js +++ b/src/components/icon/assets/arrow_right.js @@ -7,16 +7,9 @@ const EuiIconArrowRight = props => ( viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" {...props}> - - - - ); diff --git a/src/components/icon/assets/arrow_right.svg b/src/components/icon/assets/arrow_right.svg index e5eab7e9aa4..765b00e17b6 100644 --- a/src/components/icon/assets/arrow_right.svg +++ b/src/components/icon/assets/arrow_right.svg @@ -1,8 +1,5 @@ - - - - + diff --git a/src/components/icon/assets/arrow_up.js b/src/components/icon/assets/arrow_up.js index 04da59aeee5..6272d145ab2 100644 --- a/src/components/icon/assets/arrow_up.js +++ b/src/components/icon/assets/arrow_up.js @@ -7,16 +7,9 @@ const EuiIconArrowUp = props => ( viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" {...props}> - - - - ); diff --git a/src/components/icon/assets/arrow_up.svg b/src/components/icon/assets/arrow_up.svg index f20652414ad..76c9e560b92 100644 --- a/src/components/icon/assets/arrow_up.svg +++ b/src/components/icon/assets/arrow_up.svg @@ -1,8 +1,5 @@ - - - - + diff --git a/src/components/icon/assets/boxes_horizontal.js b/src/components/icon/assets/boxes_horizontal.js index 2e282efdec7..d6f318868e7 100644 --- a/src/components/icon/assets/boxes_horizontal.js +++ b/src/components/icon/assets/boxes_horizontal.js @@ -7,13 +7,7 @@ const EuiIconBoxesHorizontal = props => ( viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" {...props}> - - - - + ); diff --git a/src/components/icon/assets/boxes_horizontal.svg b/src/components/icon/assets/boxes_horizontal.svg index 23602fc3bf6..a7fb0073fec 100644 --- a/src/components/icon/assets/boxes_horizontal.svg +++ b/src/components/icon/assets/boxes_horizontal.svg @@ -1,8 +1,5 @@ - - - - + diff --git a/src/components/icon/assets/boxes_vertical.js b/src/components/icon/assets/boxes_vertical.js index 4531b885c71..80e0285b11b 100644 --- a/src/components/icon/assets/boxes_vertical.js +++ b/src/components/icon/assets/boxes_vertical.js @@ -7,13 +7,10 @@ const EuiIconBoxesVertical = props => ( viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" {...props}> - - - - + ); diff --git a/src/components/icon/assets/boxes_vertical.svg b/src/components/icon/assets/boxes_vertical.svg index 1a63309dd2b..cb1a9ec28b5 100644 --- a/src/components/icon/assets/boxes_vertical.svg +++ b/src/components/icon/assets/boxes_vertical.svg @@ -1,8 +1,3 @@ - - - - - - + diff --git a/src/components/icon/assets/brush.js b/src/components/icon/assets/brush.js index e80a4458db4..dd8197b9c8b 100644 --- a/src/components/icon/assets/brush.js +++ b/src/components/icon/assets/brush.js @@ -7,13 +7,10 @@ const EuiIconBrush = props => ( viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" {...props}> - - - - + ); diff --git a/src/components/icon/assets/brush.svg b/src/components/icon/assets/brush.svg index 0f73cc8e83b..e30577a1e7a 100644 --- a/src/components/icon/assets/brush.svg +++ b/src/components/icon/assets/brush.svg @@ -1,8 +1,3 @@ - - - - - - + diff --git a/src/components/icon/assets/console.js b/src/components/icon/assets/console.js index 2d6765775b1..7eeb9341339 100644 --- a/src/components/icon/assets/console.js +++ b/src/components/icon/assets/console.js @@ -7,13 +7,7 @@ const EuiIconConsole = props => ( viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" {...props}> - - - - + ); diff --git a/src/components/icon/assets/console.svg b/src/components/icon/assets/console.svg index ddca70963e2..9dc03fa9d7f 100644 --- a/src/components/icon/assets/console.svg +++ b/src/components/icon/assets/console.svg @@ -1,8 +1,5 @@ - - - - + diff --git a/src/components/icon/assets/copy.js b/src/components/icon/assets/copy.js index 13f5560c7a0..935031b85f5 100644 --- a/src/components/icon/assets/copy.js +++ b/src/components/icon/assets/copy.js @@ -7,13 +7,7 @@ const EuiIconCopy = props => ( viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" {...props}> - - - - + ); diff --git a/src/components/icon/assets/copy.svg b/src/components/icon/assets/copy.svg index b2e9be9c5fd..2f20c698ea9 100644 --- a/src/components/icon/assets/copy.svg +++ b/src/components/icon/assets/copy.svg @@ -1,9 +1,6 @@ - - - - + diff --git a/src/components/icon/assets/document.js b/src/components/icon/assets/document.js index fcef57b43f0..ce4b7129a43 100644 --- a/src/components/icon/assets/document.js +++ b/src/components/icon/assets/document.js @@ -7,13 +7,7 @@ const EuiIconDocument = props => ( viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" {...props}> - - - - + ); diff --git a/src/components/icon/assets/document.svg b/src/components/icon/assets/document.svg index a580eb82921..6171bc5f010 100644 --- a/src/components/icon/assets/document.svg +++ b/src/components/icon/assets/document.svg @@ -1,8 +1,3 @@ - - - - - - + diff --git a/src/components/icon/assets/dot.js b/src/components/icon/assets/dot.js index 01b34810fd4..78201c080fa 100644 --- a/src/components/icon/assets/dot.js +++ b/src/components/icon/assets/dot.js @@ -7,10 +7,7 @@ const EuiIconDot = props => ( viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" {...props}> - - - - + ); diff --git a/src/components/icon/assets/dot.svg b/src/components/icon/assets/dot.svg index d945eca4c2e..9e91a7c8606 100644 --- a/src/components/icon/assets/dot.svg +++ b/src/components/icon/assets/dot.svg @@ -1,8 +1,3 @@ - - - - - - + diff --git a/src/components/icon/assets/editor_align_center.js b/src/components/icon/assets/editor_align_center.js index d190d9a8acf..1cd0d7eba06 100644 --- a/src/components/icon/assets/editor_align_center.js +++ b/src/components/icon/assets/editor_align_center.js @@ -7,13 +7,7 @@ const EuiIconEditorAlignCenter = props => ( viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" {...props}> - - - - + ); diff --git a/src/components/icon/assets/editor_align_center.svg b/src/components/icon/assets/editor_align_center.svg index b4004f4ca8f..18dd2d65117 100644 --- a/src/components/icon/assets/editor_align_center.svg +++ b/src/components/icon/assets/editor_align_center.svg @@ -1,8 +1,3 @@ - - - - - - + diff --git a/src/components/icon/assets/editor_align_left.js b/src/components/icon/assets/editor_align_left.js index 3c90617001a..39d9c51ea9e 100644 --- a/src/components/icon/assets/editor_align_left.js +++ b/src/components/icon/assets/editor_align_left.js @@ -7,13 +7,7 @@ const EuiIconEditorAlignLeft = props => ( viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" {...props}> - - - - + ); diff --git a/src/components/icon/assets/editor_align_left.svg b/src/components/icon/assets/editor_align_left.svg index 0f34f60b7ae..5ad53e7bcc2 100644 --- a/src/components/icon/assets/editor_align_left.svg +++ b/src/components/icon/assets/editor_align_left.svg @@ -1,8 +1,3 @@ - - - - - - + diff --git a/src/components/icon/assets/editor_align_right.js b/src/components/icon/assets/editor_align_right.js index 48d756a9c5e..73a50664a3c 100644 --- a/src/components/icon/assets/editor_align_right.js +++ b/src/components/icon/assets/editor_align_right.js @@ -7,13 +7,7 @@ const EuiIconEditorAlignRight = props => ( viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" {...props}> - - - - + ); diff --git a/src/components/icon/assets/editor_align_right.svg b/src/components/icon/assets/editor_align_right.svg index 5c9160999bd..b4b4383f4c7 100644 --- a/src/components/icon/assets/editor_align_right.svg +++ b/src/components/icon/assets/editor_align_right.svg @@ -1,8 +1,3 @@ - - - - - - + diff --git a/src/components/icon/assets/editor_bold.js b/src/components/icon/assets/editor_bold.js index 4a6642b61a5..51b8f51462f 100644 --- a/src/components/icon/assets/editor_bold.js +++ b/src/components/icon/assets/editor_bold.js @@ -7,13 +7,7 @@ const EuiIconEditorBold = props => ( viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" {...props}> - - - - + ); diff --git a/src/components/icon/assets/editor_bold.svg b/src/components/icon/assets/editor_bold.svg index 10083e63ee7..d07462cefac 100644 --- a/src/components/icon/assets/editor_bold.svg +++ b/src/components/icon/assets/editor_bold.svg @@ -1,8 +1,3 @@ - - - - - - + diff --git a/src/components/icon/assets/editor_comment.js b/src/components/icon/assets/editor_comment.js index 85ad34f71a1..358499e71b2 100644 --- a/src/components/icon/assets/editor_comment.js +++ b/src/components/icon/assets/editor_comment.js @@ -7,13 +7,7 @@ const EuiIconEditorComment = props => ( viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" {...props}> - - - - + ); diff --git a/src/components/icon/assets/editor_comment.svg b/src/components/icon/assets/editor_comment.svg index 7e5ddfb396d..140af10c86d 100644 --- a/src/components/icon/assets/editor_comment.svg +++ b/src/components/icon/assets/editor_comment.svg @@ -1,8 +1,3 @@ - - - - - - + diff --git a/src/components/icon/assets/editor_heading.js b/src/components/icon/assets/editor_heading.js index a5b3c815aeb..210ab8c62e6 100644 --- a/src/components/icon/assets/editor_heading.js +++ b/src/components/icon/assets/editor_heading.js @@ -7,13 +7,7 @@ const EuiIconEditorHeading = props => ( viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" {...props}> - - - - + ); diff --git a/src/components/icon/assets/editor_heading.svg b/src/components/icon/assets/editor_heading.svg index 6b11d95ab0e..4361aa05d2f 100644 --- a/src/components/icon/assets/editor_heading.svg +++ b/src/components/icon/assets/editor_heading.svg @@ -1,8 +1,3 @@ - - - - - - + diff --git a/src/components/icon/assets/editor_italic.js b/src/components/icon/assets/editor_italic.js index 6a876608e96..e4d1f2e55cd 100644 --- a/src/components/icon/assets/editor_italic.js +++ b/src/components/icon/assets/editor_italic.js @@ -7,13 +7,7 @@ const EuiIconEditorItalic = props => ( viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" {...props}> - - - - + ); diff --git a/src/components/icon/assets/editor_italic.svg b/src/components/icon/assets/editor_italic.svg index 302169e0be9..1294e009de7 100644 --- a/src/components/icon/assets/editor_italic.svg +++ b/src/components/icon/assets/editor_italic.svg @@ -1,8 +1,3 @@ - - - - - - + diff --git a/src/components/icon/assets/editor_link.js b/src/components/icon/assets/editor_link.js index 4516e8dedd6..d633298378c 100644 --- a/src/components/icon/assets/editor_link.js +++ b/src/components/icon/assets/editor_link.js @@ -7,13 +7,7 @@ const EuiIconEditorLink = props => ( viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" {...props}> - - - - + ); diff --git a/src/components/icon/assets/editor_link.svg b/src/components/icon/assets/editor_link.svg index 49a8e55570e..9bbb2493ea9 100644 --- a/src/components/icon/assets/editor_link.svg +++ b/src/components/icon/assets/editor_link.svg @@ -1,8 +1,3 @@ - - - - - - + diff --git a/src/components/icon/assets/editor_ordered_list.js b/src/components/icon/assets/editor_ordered_list.js index b7df00ecc11..432104564bf 100644 --- a/src/components/icon/assets/editor_ordered_list.js +++ b/src/components/icon/assets/editor_ordered_list.js @@ -7,13 +7,7 @@ const EuiIconEditorOrderedList = props => ( viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" {...props}> - - - - + ); diff --git a/src/components/icon/assets/editor_ordered_list.svg b/src/components/icon/assets/editor_ordered_list.svg index 76238375cd7..2cf1b015d9e 100644 --- a/src/components/icon/assets/editor_ordered_list.svg +++ b/src/components/icon/assets/editor_ordered_list.svg @@ -1,8 +1,3 @@ - - - - - - + diff --git a/src/components/icon/assets/editor_strike.js b/src/components/icon/assets/editor_strike.js index bfc1b86bef8..f4f3d863767 100644 --- a/src/components/icon/assets/editor_strike.js +++ b/src/components/icon/assets/editor_strike.js @@ -7,13 +7,7 @@ const EuiIconEditorStrike = props => ( viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" {...props}> - - - - + ); diff --git a/src/components/icon/assets/editor_strike.svg b/src/components/icon/assets/editor_strike.svg index e926ae70c4a..9d1da5ebcfd 100644 --- a/src/components/icon/assets/editor_strike.svg +++ b/src/components/icon/assets/editor_strike.svg @@ -1,8 +1,3 @@ - - - - - - + diff --git a/src/components/icon/assets/editor_table.js b/src/components/icon/assets/editor_table.js index ef9af5e909d..4f0f525df11 100644 --- a/src/components/icon/assets/editor_table.js +++ b/src/components/icon/assets/editor_table.js @@ -7,13 +7,7 @@ const EuiIconEditorTable = props => ( viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" {...props}> - - - - + ); diff --git a/src/components/icon/assets/editor_table.svg b/src/components/icon/assets/editor_table.svg index c68170187e1..8bb7741d0d9 100644 --- a/src/components/icon/assets/editor_table.svg +++ b/src/components/icon/assets/editor_table.svg @@ -1,8 +1,3 @@ - - - - - - + diff --git a/src/components/icon/assets/editor_unordered_list.js b/src/components/icon/assets/editor_unordered_list.js index a3f9cacca7d..0f2ea63d71a 100644 --- a/src/components/icon/assets/editor_unordered_list.js +++ b/src/components/icon/assets/editor_unordered_list.js @@ -7,13 +7,7 @@ const EuiIconEditorUnorderedList = props => ( viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" {...props}> - - - - + ); diff --git a/src/components/icon/assets/editor_unordered_list.svg b/src/components/icon/assets/editor_unordered_list.svg index 3c85cfcb042..a872e078f31 100644 --- a/src/components/icon/assets/editor_unordered_list.svg +++ b/src/components/icon/assets/editor_unordered_list.svg @@ -1,8 +1,3 @@ - - - - - - + diff --git a/src/components/icon/assets/email.js b/src/components/icon/assets/email.js index 54c9538fd8c..c5c071591dc 100644 --- a/src/components/icon/assets/email.js +++ b/src/components/icon/assets/email.js @@ -7,13 +7,10 @@ const EuiIconEmail = props => ( viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" {...props}> - - - - + ); diff --git a/src/components/icon/assets/email.svg b/src/components/icon/assets/email.svg index dbace26db93..72c5972c6bf 100644 --- a/src/components/icon/assets/email.svg +++ b/src/components/icon/assets/email.svg @@ -1,6 +1,3 @@ - - - - + diff --git a/src/components/icon/assets/full_screen.js b/src/components/icon/assets/full_screen.js index 2b2c7456ce1..089e7cb7d6c 100644 --- a/src/components/icon/assets/full_screen.js +++ b/src/components/icon/assets/full_screen.js @@ -7,13 +7,10 @@ const EuiIconFullScreen = props => ( viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" {...props}> - - - - + ); diff --git a/src/components/icon/assets/full_screen.svg b/src/components/icon/assets/full_screen.svg index 77dd46071aa..851e6a6220b 100644 --- a/src/components/icon/assets/full_screen.svg +++ b/src/components/icon/assets/full_screen.svg @@ -1,8 +1,5 @@ - - - - + diff --git a/src/components/icon/assets/gear.js b/src/components/icon/assets/gear.js index 21596637fe9..be96d30da9d 100644 --- a/src/components/icon/assets/gear.js +++ b/src/components/icon/assets/gear.js @@ -7,13 +7,7 @@ const EuiIconGear = props => ( viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" {...props}> - - - - + ); diff --git a/src/components/icon/assets/gear.svg b/src/components/icon/assets/gear.svg index 00eb66e9b02..19ecdb6698a 100644 --- a/src/components/icon/assets/gear.svg +++ b/src/components/icon/assets/gear.svg @@ -1,8 +1,3 @@ - - - - - - + diff --git a/src/components/icon/assets/grid.js b/src/components/icon/assets/grid.js index f4bc0ad511a..f21238c7ce1 100644 --- a/src/components/icon/assets/grid.js +++ b/src/components/icon/assets/grid.js @@ -7,13 +7,7 @@ const EuiIconGrid = props => ( viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" {...props}> - - - - + ); diff --git a/src/components/icon/assets/grid.svg b/src/components/icon/assets/grid.svg index da7925d6e4f..7dfbfa58604 100644 --- a/src/components/icon/assets/grid.svg +++ b/src/components/icon/assets/grid.svg @@ -1,8 +1,3 @@ - - - - - - + diff --git a/src/components/icon/assets/help.js b/src/components/icon/assets/help.js index 3969fbe19dc..38247221167 100644 --- a/src/components/icon/assets/help.js +++ b/src/components/icon/assets/help.js @@ -7,13 +7,10 @@ const EuiIconHelp = props => ( viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" {...props}> - - - - + ); diff --git a/src/components/icon/assets/help.svg b/src/components/icon/assets/help.svg index b297dc01c51..3285f6e70a5 100644 --- a/src/components/icon/assets/help.svg +++ b/src/components/icon/assets/help.svg @@ -1,8 +1,3 @@ - - - - - - + diff --git a/src/components/icon/assets/map_marker.js b/src/components/icon/assets/map_marker.js index 9773e8e44bc..d721c05d9a6 100644 --- a/src/components/icon/assets/map_marker.js +++ b/src/components/icon/assets/map_marker.js @@ -7,13 +7,7 @@ const EuiIconMapMarker = props => ( viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" {...props}> - - - - + ); diff --git a/src/components/icon/assets/map_marker.svg b/src/components/icon/assets/map_marker.svg index cb0490fc536..ed566d64f3c 100644 --- a/src/components/icon/assets/map_marker.svg +++ b/src/components/icon/assets/map_marker.svg @@ -1,8 +1,3 @@ - - - - - - + diff --git a/src/components/icon/assets/paint.js b/src/components/icon/assets/paint.js index 5ddb39b984d..cfa54e64f0b 100644 --- a/src/components/icon/assets/paint.js +++ b/src/components/icon/assets/paint.js @@ -7,13 +7,7 @@ const EuiIconPaint = props => ( viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" {...props}> - - - - + ); diff --git a/src/components/icon/assets/paint.svg b/src/components/icon/assets/paint.svg index 9fbc98538da..90282308a53 100644 --- a/src/components/icon/assets/paint.svg +++ b/src/components/icon/assets/paint.svg @@ -1,8 +1,3 @@ - - - - - - + diff --git a/src/components/icon/assets/pencil.js b/src/components/icon/assets/pencil.js index f34a45bed1c..6a9fbd079ec 100644 --- a/src/components/icon/assets/pencil.js +++ b/src/components/icon/assets/pencil.js @@ -7,13 +7,10 @@ const EuiIconPencil = props => ( viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" {...props}> - - - - + ); diff --git a/src/components/icon/assets/pencil.svg b/src/components/icon/assets/pencil.svg index 97a4b6a14ab..02406844f04 100644 --- a/src/components/icon/assets/pencil.svg +++ b/src/components/icon/assets/pencil.svg @@ -1,8 +1,3 @@ - - - - - - + diff --git a/src/components/icon/assets/search.js b/src/components/icon/assets/search.js index 91c2ec495e4..25054cc65e5 100644 --- a/src/components/icon/assets/search.js +++ b/src/components/icon/assets/search.js @@ -7,13 +7,7 @@ const EuiIconSearch = props => ( viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" {...props}> - - - - + ); diff --git a/src/components/icon/assets/search.svg b/src/components/icon/assets/search.svg index 9addc046062..c306642b710 100644 --- a/src/components/icon/assets/search.svg +++ b/src/components/icon/assets/search.svg @@ -1,8 +1,3 @@ - - - - - - + diff --git a/src/components/icon/assets/tear.js b/src/components/icon/assets/tear.js index f2094a95eb5..061b666530c 100644 --- a/src/components/icon/assets/tear.js +++ b/src/components/icon/assets/tear.js @@ -7,13 +7,7 @@ const EuiIconTear = props => ( viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" {...props}> - - - - + ); diff --git a/src/components/icon/assets/tear.svg b/src/components/icon/assets/tear.svg index 0f2b420aef7..61076025e15 100644 --- a/src/components/icon/assets/tear.svg +++ b/src/components/icon/assets/tear.svg @@ -1,8 +1,3 @@ - - - - - - + diff --git a/src/components/icon/assets/trash.js b/src/components/icon/assets/trash.js index c6a25cca9ad..e4d14d2253e 100644 --- a/src/components/icon/assets/trash.js +++ b/src/components/icon/assets/trash.js @@ -7,13 +7,7 @@ const EuiIconTrash = props => ( viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" {...props}> - - - - + ); diff --git a/src/components/icon/assets/trash.svg b/src/components/icon/assets/trash.svg index c72472bcaa2..babc5145daf 100644 --- a/src/components/icon/assets/trash.svg +++ b/src/components/icon/assets/trash.svg @@ -1,8 +1,3 @@ - - - - - - + diff --git a/src/components/icon/assets/vis_controls.js b/src/components/icon/assets/vis_controls.js index 86a1565e190..f3a72b61237 100644 --- a/src/components/icon/assets/vis_controls.js +++ b/src/components/icon/assets/vis_controls.js @@ -7,13 +7,7 @@ const EuiIconVisControls = props => ( viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" {...props}> - - - - + ); diff --git a/src/components/icon/assets/vis_controls.svg b/src/components/icon/assets/vis_controls.svg index f56c4460a0a..18f18120026 100644 --- a/src/components/icon/assets/vis_controls.svg +++ b/src/components/icon/assets/vis_controls.svg @@ -1,8 +1,3 @@ - - - - - - + From bb0872dcc9a0f12480c3218f71573d376c44d383 Mon Sep 17 00:00:00 2001 From: Michael DeFazio Date: Wed, 24 Jul 2019 16:18:58 -0400 Subject: [PATCH 2/4] Update CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 227b2dfd21e..38d6aaff0ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## [`master`](https://github.com/elastic/eui/tree/master) - Added `partial` glyph to `EuiIcon` ([#2152](https://github.com/elastic/eui/pull/2152)) +- Removes and from svg icons ([#2162](https://github.com/elastic/eui/pull/2162)) **Bug fixes** From 88106c0c3dab10a4cbbf57a1d5ae84c8dc03d5b0 Mon Sep 17 00:00:00 2001 From: Caroline Horn <549577+cchaos@users.noreply.github.com> Date: Wed, 24 Jul 2019 17:18:39 -0400 Subject: [PATCH 3/4] More EuiFilePicker styles (#2145) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Added `fullWidth` and `isInvalid` props to EuiFilePicker * Added a ‘large’ vs 'default' version * Setting the height statically so that it doesn't shift it's surrounding contents around * Remove z-indexes: Clashed with any popovers and wasn’t necessary since dom order signifies this * Added isLoading state (overrides clear button) --- CHANGELOG.md | 2 + .../src/views/form_controls/file_picker.js | 12 +- .../__snapshots__/file_picker.test.js.snap | 2 +- .../form/file_picker/_file_picker.scss | 282 ++++++++++-------- src/components/form/file_picker/_index.scss | 1 + .../form/file_picker/_variables.scss | 1 + .../form/file_picker/file_picker.js | 84 ++++-- 7 files changed, 234 insertions(+), 150 deletions(-) create mode 100644 src/components/form/file_picker/_variables.scss diff --git a/CHANGELOG.md b/CHANGELOG.md index 227b2dfd21e..46379ba0f4d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,12 +1,14 @@ ## [`master`](https://github.com/elastic/eui/tree/master) - Added `partial` glyph to `EuiIcon` ([#2152](https://github.com/elastic/eui/pull/2152)) +- Added `tall`, `fullWidth`, and `isInvalid` props to `EuiFilePicker` ([#2145](https://github.com/elastic/eui/pull/2145)) **Bug fixes** - Fixed invalid `aria-desribedby` values set by `EuiToolTip` ([#2156](https://github.com/elastic/eui/pull/2156)) - Added `"center"` as an acceptable value to `EuiBasicTable`'s `align` proptype ([#2158](https://github.com/elastic/eui/pull/2158)) - Fixed `.eui-textBreakWord` utility class to be cross-browser compatible ([#2157](https://github.com/elastic/eui/pull/2157)) +- Fixed truncation and z-index of `EuiFilePicker` ([#2145](https://github.com/elastic/eui/pull/2145)) ## [`13.0.0`](https://github.com/elastic/eui/tree/v13.0.0) diff --git a/src-docs/src/views/form_controls/file_picker.js b/src-docs/src/views/form_controls/file_picker.js index fb6f637dcbb..68f7acd2799 100644 --- a/src-docs/src/views/form_controls/file_picker.js +++ b/src-docs/src/views/form_controls/file_picker.js @@ -70,8 +70,16 @@ export class FilePicker extends Component { { + this.onChange(files); + }} + /> + + + + { diff --git a/src/components/form/file_picker/__snapshots__/file_picker.test.js.snap b/src/components/form/file_picker/__snapshots__/file_picker.test.js.snap index d70cb677908..9d2bd681827 100644 --- a/src/components/form/file_picker/__snapshots__/file_picker.test.js.snap +++ b/src/components/form/file_picker/__snapshots__/file_picker.test.js.snap @@ -2,7 +2,7 @@ exports[`EuiFilePicker is rendered 1`] = `
+ ); + } else if (isOverridingInitialPrompt) { + if (normalFormControl) { clearButton = (