Skip to content

Commit

Permalink
fix(components): tooltips (#2413)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien Rassinier authored Sep 18, 2019
1 parent 563b069 commit 61654e6
Show file tree
Hide file tree
Showing 23 changed files with 2,517 additions and 2,710 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,39 +21,34 @@ exports[`Intercom button should render a button 1`] = `
label="Chat with Talend Support"
tooltipPlacement="bottom"
>
<div
<button
aria-describedby={42}
className="theme-tc-tooltip"
className="btn btn-link tc-intercom theme-tc-intercom"
id="my-intercom"
key=".0"
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
onKeyPress={[Function]}
onMouseOut={[Function]}
onMouseOver={[Function]}
>
<button
aria-describedby={42}
className="btn btn-link tc-intercom theme-tc-intercom"
id="my-intercom"
key=".0"
<Icon
name="talend-bubbles"
>
<Icon
<svg
aria-hidden="true"
className="theme-tc-svg-icon tc-svg-icon"
focusable="false"
name="talend-bubbles"
title={null}
>
<svg
aria-hidden="true"
className="theme-tc-svg-icon tc-svg-icon"
focusable="false"
name="talend-bubbles"
title={null}
>
<use
xlinkHref="#talend-bubbles"
/>
</svg>
</Icon>
</button>
</div>
<use
xlinkHref="#talend-bubbles"
/>
</svg>
</Icon>
</button>
</TooltipTrigger>
</Intercom>
`;
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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}
Expand All @@ -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"
>
<button
Expand All @@ -918,8 +934,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"
type="button"
>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`BadgeCategory should render with the label 1`] = `
<div class="theme-tc-tooltip"
aria-describedby="42"
<span aria-label="my badge label"
class="tc-badge-category theme-tc-badge-category"
aria-describedby="42"
>
<span aria-label="my badge label"
class="tc-badge-category theme-tc-badge-category"
aria-describedby="42"
>
my badge label
</span>
</div>
my badge label
</span>
`;
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`BadgeDelete should render 1`] = `
<div class="theme-tc-tooltip"
aria-describedby="42"
<button role="button"
aria-label="Delete"
id="tc-badge-delete-my-id"
aria-describedby="42"
type="button"
class="tc-badge-delete-icon theme-tc-badge-delete-icon btn-icon-only btn btn-link"
>
<button role="button"
aria-label="Delete"
id="tc-badge-delete-my-id"
aria-describedby="42"
type="button"
class="tc-badge-delete-icon theme-tc-badge-delete-icon btn-icon-only btn btn-link"
<svg name="talend-cross"
class="theme-tc-svg-icon tc-svg-icon"
focusable="false"
aria-hidden="true"
>
<svg name="talend-cross"
class="theme-tc-svg-icon tc-svg-icon"
focusable="false"
aria-hidden="true"
>
<use xlink:href="#talend-cross">
</use>
</svg>
</button>
</div>
<use xlink:href="#talend-cross">
</use>
</svg>
</button>
`;
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@

exports[`BadgeLabel should default render 1`] = `
<div class="tc-badge-label theme-tc-badge-label">
<div class="theme-tc-tooltip"
aria-describedby="42"
<span class="tc-badge-label-text theme-tc-badge-label-text"
aria-describedby="42"
>
<span class="tc-badge-label-text theme-tc-badge-label-text"
aria-describedby="42"
>
my label
</span>
</div>
my label
</span>
</div>
`;
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,11 @@ exports[`Badge should render by default 1`] = `
<div class="tc-badge theme-tc-badge tc-badge-display-large theme-tc-badge-display-large tc-badge-readonly theme-tc-badge-readonly">
<div class="tc-badge-button theme-tc-badge-button">
<div class="tc-badge-label theme-tc-badge-label">
<div class="theme-tc-tooltip"
aria-describedby="42"
<span class="tc-badge-label-text theme-tc-badge-label-text"
aria-describedby="42"
>
<span class="tc-badge-label-text theme-tc-badge-label-text"
aria-describedby="42"
>
my label
</span>
</div>
my label
</span>
</div>
</div>
</div>
Expand Down
Loading

0 comments on commit 61654e6

Please sign in to comment.