forked from italia/design-react-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- reactstrap UncontrolledTooltip searches the document object for ids at first render, by adding invisible divs with the required ids th tests will pass and on render the tooltips will be correctly applied to the tests' correct buttons reactstrap/reactstrap#773 (comment) - Update snaps
- Loading branch information
Showing
3 changed files
with
194 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
129 changes: 69 additions & 60 deletions
129
stories/Tooltip/__snapshots__/Tooltip.stories.storyshot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,100 +1,109 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Storyshots Componenti/Tooltip Esempi 1`] = ` | ||
exports[`Storyshots Componenti/Tooltip Esempi interattivi 1`] = ` | ||
<div | ||
style={ | ||
Object { | ||
"padding": "10px", | ||
"boxSizing": "border-box", | ||
"margin": "0", | ||
"padding": "48px 32px", | ||
"position": "relative", | ||
"textAlign": "initial", | ||
} | ||
} | ||
> | ||
<div | ||
style={ | ||
Object { | ||
"backgroundColor": "#ffffff", | ||
"border": "1px dashed #e5e5e5", | ||
"boxSizing": "border-box", | ||
"margin": "16px 0 16px 0", | ||
"padding": "50px 35px", | ||
"position": "relative", | ||
"textAlign": "initial", | ||
"transition": "background-color 0.2s", | ||
"zIndex": 0, | ||
} | ||
} | ||
/> | ||
<div | ||
className="markdown-body" | ||
dangerouslySetInnerHTML={ | ||
Object { | ||
"__html": "Esempi.md", | ||
> | ||
<div | ||
style={ | ||
Object { | ||
"padding": 200, | ||
} | ||
} | ||
} | ||
/> | ||
</div> | ||
`; | ||
|
||
exports[`Storyshots Componenti/Tooltip Esempi interattivi 1`] = ` | ||
<div | ||
style={ | ||
Object { | ||
"padding": "10px", | ||
} | ||
} | ||
> | ||
<div | ||
/> | ||
</div> | ||
<button | ||
className="info__show-button" | ||
onClick={[Function]} | ||
style={ | ||
Object { | ||
"backgroundColor": "#ffffff", | ||
"border": "1px dashed #e5e5e5", | ||
"boxSizing": "border-box", | ||
"margin": "16px 0 16px 0", | ||
"padding": "50px 35px", | ||
"position": "relative", | ||
"textAlign": "initial", | ||
"transition": "background-color 0.2s", | ||
"background": "#027ac5", | ||
"border": "none", | ||
"borderRadius": "0 0 0 5px", | ||
"color": "#fff", | ||
"cursor": "pointer", | ||
"display": "block", | ||
"fontFamily": "sans-serif", | ||
"fontSize": "12px", | ||
"padding": "5px 15px", | ||
"position": "fixed", | ||
"right": 0, | ||
"top": 0, | ||
} | ||
} | ||
/> | ||
<div | ||
className="markdown-body" | ||
dangerouslySetInnerHTML={ | ||
Object { | ||
"__html": "EsempiInterattivi.md", | ||
} | ||
} | ||
/> | ||
type="button" | ||
> | ||
Show Info | ||
</button> | ||
</div> | ||
`; | ||
|
||
exports[`Storyshots Componenti/Tooltip Posizioni 1`] = ` | ||
<div | ||
style={ | ||
Object { | ||
"padding": "10px", | ||
"boxSizing": "border-box", | ||
"margin": "0", | ||
"padding": "48px 32px", | ||
"position": "relative", | ||
"textAlign": "initial", | ||
} | ||
} | ||
> | ||
<div | ||
style={ | ||
Object { | ||
"backgroundColor": "#ffffff", | ||
"border": "1px dashed #e5e5e5", | ||
"boxSizing": "border-box", | ||
"margin": "16px 0 16px 0", | ||
"padding": "50px 35px", | ||
"position": "relative", | ||
"textAlign": "initial", | ||
"transition": "background-color 0.2s", | ||
"zIndex": 0, | ||
} | ||
} | ||
/> | ||
<div | ||
className="markdown-body" | ||
dangerouslySetInnerHTML={ | ||
> | ||
<div | ||
style={ | ||
Object { | ||
"padding": 100, | ||
} | ||
} | ||
/> | ||
</div> | ||
<button | ||
className="info__show-button" | ||
onClick={[Function]} | ||
style={ | ||
Object { | ||
"__html": "Posizioni.md", | ||
"background": "#027ac5", | ||
"border": "none", | ||
"borderRadius": "0 0 0 5px", | ||
"color": "#fff", | ||
"cursor": "pointer", | ||
"display": "block", | ||
"fontFamily": "sans-serif", | ||
"fontSize": "12px", | ||
"padding": "5px 15px", | ||
"position": "fixed", | ||
"right": 0, | ||
"top": 0, | ||
} | ||
} | ||
/> | ||
type="button" | ||
> | ||
Show Info | ||
</button> | ||
</div> | ||
`; |