Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #784 from qawolf/feat-iframes
IFrame support
- Loading branch information
Showing
14 changed files
with
266 additions
and
64 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,6 +1,6 @@ | ||
{ | ||
"name": "@qawolf/sandbox", | ||
"version": "0.1.18", | ||
"version": "0.1.19", | ||
"files": [ | ||
"bin", | ||
"build" | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import React from "react"; | ||
|
||
const style = { | ||
display: 'flex', | ||
flexDirection: 'column', | ||
alignItems: 'center', | ||
height: '100vh', | ||
position: 'absolute', | ||
alignContent: 'space-around', | ||
width: '100vw' | ||
}; | ||
|
||
const frameStyle = { | ||
flexGrow: 1, | ||
margin: 20, | ||
width: 'calc(100% - 40px)' | ||
}; | ||
|
||
const buttonStyle = { | ||
flexGrow: 0, | ||
height: 30, | ||
margin: 20, | ||
width: 'calc(100% - 40px)' | ||
}; | ||
|
||
function InlineFrames() { | ||
return ( | ||
<div style={style}> | ||
<button type="button" style={buttonStyle}>Main Page Button</button> | ||
<iframe src="/buttons" style={frameStyle} title="Buttons" data-qa="first" /> | ||
<iframe src="/text-inputs" style={frameStyle} title="Text inputs" data-qa="second" /> | ||
</div> | ||
); | ||
} | ||
|
||
export default InlineFrames; |
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
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
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
Oops, something went wrong.