-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
frontend: ReleaseNotes/UpdatePopup: Add stories for states
The stories didn't show the different states. Also added some documentation for the props fields. Signed-off-by: René Dudfield <renedudfield@microsoft.com>
- Loading branch information
Showing
5 changed files
with
76 additions
and
78 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
72 changes: 0 additions & 72 deletions
72
...end/src/components/common/ReleaseNotes/__snapshots__/UpdatePopup.Closed.stories.storyshot
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
...rc/components/common/ReleaseNotes/__snapshots__/UpdatePopup.FetchFailed.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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<DocumentFragment> | ||
<div | ||
class="MuiSnackbar-root MuiSnackbar-anchorOriginBottomRight css-1mdvdtb-MuiSnackbar-root" | ||
role="presentation" | ||
> | ||
<div | ||
aria-describedby="updatePopup" | ||
class="MuiPaper-root MuiPaper-elevation MuiPaper-elevation6 MuiSnackbarContent-root css-1rl5bq8-MuiPaper-root-MuiSnackbarContent-root" | ||
direction="up" | ||
role="alert" | ||
style="opacity: 1; transform: scale(1, 1); transition: opacity 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;" | ||
> | ||
<div | ||
class="MuiSnackbarContent-message css-1exqwzz-MuiSnackbarContent-message" | ||
> | ||
Failed to fetch release information | ||
</div> | ||
</div> | ||
</div> | ||
</DocumentFragment> |
35 changes: 35 additions & 0 deletions
35
...d/src/components/common/ReleaseNotes/__snapshots__/UpdatePopup.Fetching.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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<DocumentFragment> | ||
<div | ||
class="MuiSnackbar-root MuiSnackbar-anchorOriginBottomRight css-pvolpf-MuiSnackbar-root" | ||
role="presentation" | ||
> | ||
<div | ||
aria-describedby="updatePopup" | ||
class="MuiPaper-root MuiPaper-elevation MuiPaper-elevation6 MuiSnackbarContent-root css-1rl5bq8-MuiPaper-root-MuiSnackbarContent-root" | ||
direction="up" | ||
role="alert" | ||
style="opacity: 1; transform: scale(1, 1); transition: opacity 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;" | ||
> | ||
<div | ||
class="MuiSnackbarContent-message css-1exqwzz-MuiSnackbarContent-message" | ||
> | ||
Fetching release information… | ||
</div> | ||
<div | ||
class="MuiSnackbarContent-action css-1kr9x0n-MuiSnackbarContent-action" | ||
> | ||
<button | ||
class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary css-1gp6czg-MuiButtonBase-root-MuiButton-root" | ||
style="color: rgb(255, 242, 0);" | ||
tabindex="0" | ||
type="button" | ||
> | ||
Skip | ||
<span | ||
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root" | ||
/> | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</DocumentFragment> |