-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Do not show loading placeholder when iframe is loaded
#81 When embedding pages with no backgrounds, the "loading..." placeholder label would be visible. This commit hides it when the iframe is loaded.
- Loading branch information
Showing
2 changed files
with
30 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React from 'react' | ||
|
||
import { config, withDesign } from 'storybook-addon-designs' | ||
|
||
import { Button } from '../../Button' | ||
|
||
import sampleImage from '@storybook-addon-designs/assets/sample.png' | ||
|
||
export default { | ||
title: 'Tests/Issues/#81', | ||
decorators: [withDesign], | ||
} | ||
|
||
export const hideLoadingPlaceholderWhenLoaded = () => <Button>Button</Button> | ||
|
||
hideLoadingPlaceholderWhenLoaded.story = { | ||
parameters: { | ||
design: config({ | ||
type: 'iframe', | ||
url: sampleImage, | ||
}), | ||
}, | ||
} |
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