From 61654e610e666d120f844ab4ed29f54b7679aeae Mon Sep 17 00:00:00 2001 From: Fabien Rassinier Date: Wed, 18 Sep 2019 14:33:19 +0200 Subject: [PATCH] fix(components): tooltips (#2413) --- .../Intercom.component.test.js.snap | 39 +- .../ActionDropdown.snapshot.test.js.snap | 21 + .../BadgeCategory.component.test.js.snap | 14 +- .../BadgeDelete.component.test.js.snap | 32 +- .../BadgeLabel.component.test.js.snap | 12 +- .../Badge.component.test.js.snap | 12 +- .../CollapsiblePanel.snapshot.test.js.snap | 426 +- .../__snapshots__/ConfirmDialog.test.js.snap | 17 +- .../ListDisplayMode.component.test.js.snap | 134 +- .../TextFilter.component.test.js.snap | 142 +- .../Header.snapshot.test.js.snap | 42 +- .../headerInput.snapshot.test.js.snap | 42 +- .../Items/__snapshots__/items.test.js.snap | 69 +- .../__snapshots__/Progress.test.js.snap | 106 +- .../__snapshots__/FiltersBar.test.js.snap | 42 +- .../__snapshots__/TitleBar.test.js.snap | 42 +- .../TooltipTrigger.component.js | 122 +- .../src/TooltipTrigger/TooltipTrigger.hook.js | 5 +- .../__snapshots__/TooltipTrigger.test.js.snap | 65 +- .../Typeahead.snapshot.test.js.snap | 32 +- packages/components/stories/TooltipTrigger.js | 7 +- .../ListView.component.test.js.snap | 69 +- .../EnumerationWidget.test.js.snap | 3735 ++++++++--------- 23 files changed, 2517 insertions(+), 2710 deletions(-) diff --git a/packages/components/src/ActionIntercom/__snapshots__/Intercom.component.test.js.snap b/packages/components/src/ActionIntercom/__snapshots__/Intercom.component.test.js.snap index f23d40d0f71..e2a3f3f14df 100644 --- a/packages/components/src/ActionIntercom/__snapshots__/Intercom.component.test.js.snap +++ b/packages/components/src/ActionIntercom/__snapshots__/Intercom.component.test.js.snap @@ -21,9 +21,11 @@ exports[`Intercom button should render a button 1`] = ` label="Chat with Talend Support" tooltipPlacement="bottom" > -
- -
+ + + + `; diff --git a/packages/components/src/Actions/ActionDropdown/__snapshots__/ActionDropdown.snapshot.test.js.snap b/packages/components/src/Actions/ActionDropdown/__snapshots__/ActionDropdown.snapshot.test.js.snap index 7a3eef99444..d7c08c92b5e 100644 --- a/packages/components/src/Actions/ActionDropdown/__snapshots__/ActionDropdown.snapshot.test.js.snap +++ b/packages/components/src/Actions/ActionDropdown/__snapshots__/ActionDropdown.snapshot.test.js.snap @@ -837,6 +837,12 @@ exports[`ActionDropdown should render icon only with hideLabel props 1`] = ` i18n={Object {}} id="dropdown-id" key=".0" + onBlur={[Function]} + onClick={[Function]} + onFocus={[Function]} + onKeyPress={[Function]} + onMouseOut={[Function]} + onMouseOver={[Function]} onSelect={[Function]} onToggle={[Function]} role="button" @@ -886,8 +892,13 @@ exports[`ActionDropdown should render icon only with hideLabel props 1`] = ` i18n={Object {}} id="dropdown-id" key=".0" + onBlur={[Function]} onClick={[Function]} + onFocus={[Function]} onKeyDown={[Function]} + onKeyPress={[Function]} + onMouseOut={[Function]} + onMouseOver={[Function]} open={false} role="button" useAnchor={false} @@ -905,8 +916,13 @@ exports[`ActionDropdown should render icon only with hideLabel props 1`] = ` disabled={false} i18n={Object {}} id="dropdown-id" + onBlur={[Function]} onClick={[Function]} + onFocus={[Function]} onKeyDown={[Function]} + onKeyPress={[Function]} + onMouseOut={[Function]} + onMouseOver={[Function]} role="button" > - + + + + `; diff --git a/packages/components/src/Badge/BadgeComposition/BadgeLabel/__snapshots__/BadgeLabel.component.test.js.snap b/packages/components/src/Badge/BadgeComposition/BadgeLabel/__snapshots__/BadgeLabel.component.test.js.snap index 14fd39920e4..b64c3908d31 100644 --- a/packages/components/src/Badge/BadgeComposition/BadgeLabel/__snapshots__/BadgeLabel.component.test.js.snap +++ b/packages/components/src/Badge/BadgeComposition/BadgeLabel/__snapshots__/BadgeLabel.component.test.js.snap @@ -2,14 +2,10 @@ exports[`BadgeLabel should default render 1`] = `
-
- - my label - -
+ my label +
`; diff --git a/packages/components/src/Badge/__snapshots__/Badge.component.test.js.snap b/packages/components/src/Badge/__snapshots__/Badge.component.test.js.snap index 7804a6ff744..a686257dea9 100644 --- a/packages/components/src/Badge/__snapshots__/Badge.component.test.js.snap +++ b/packages/components/src/Badge/__snapshots__/Badge.component.test.js.snap @@ -4,15 +4,11 @@ exports[`Badge should render by default 1`] = `
-
- - my label - -
+ my label +
diff --git a/packages/components/src/CollapsiblePanel/__snapshots__/CollapsiblePanel.snapshot.test.js.snap b/packages/components/src/CollapsiblePanel/__snapshots__/CollapsiblePanel.snapshot.test.js.snap index dcc0b5efc7f..2fd5694cadc 100644 --- a/packages/components/src/CollapsiblePanel/__snapshots__/CollapsiblePanel.snapshot.test.js.snap +++ b/packages/components/src/CollapsiblePanel/__snapshots__/CollapsiblePanel.snapshot.test.js.snap @@ -91,41 +91,35 @@ exports[`CollapsiblePanel should render default with expanded key/value content
-
-