This repository has been archived by the owner on Feb 5, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 237
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 #1152 from jeff-phillips-18/loading-state
feat(loading-state): Add the loading-state component
- Loading branch information
Showing
14 changed files
with
151 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = [{ | ||
removeSelectors: ['.page-header + .alert'], | ||
label: 'loading-state', | ||
url: 'dist/tests/loading-state.html', | ||
disabled: false | ||
}] |
Binary file added
BIN
+18.4 KB
.../bitmaps_reference/backstop_default_loading-state_0_document_0_large-device.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,25 @@ | ||
.loading-state-pf { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
font-size: (@spinner-size * .5); | ||
height: 100%; | ||
|
||
&:before { | ||
content: ""; | ||
height: 25%; | ||
display: block; | ||
} | ||
|
||
&.loading-state-pf-lg { | ||
font-size: (@spinner-size-lg * .5); | ||
} | ||
|
||
&.loading-state-pf-sm { | ||
font-size: (@spinner-size-sm * .5); | ||
} | ||
|
||
&.loading-state-pf-xs { | ||
font-size: (@spinner-size-xs * .5); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
.loading-state-pf { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
font-size: ($spinner-size * .5); | ||
height: 100%; | ||
|
||
&:before { | ||
content: ""; | ||
height: 25%; | ||
display: block; | ||
} | ||
|
||
&.loading-state-pf-lg { | ||
font-size: ($spinner-size-lg * .5); | ||
} | ||
|
||
&.loading-state-pf-sm { | ||
font-size: ($spinner-size-sm * .5); | ||
} | ||
|
||
&.loading-state-pf-xs { | ||
font-size: ($spinner-size-xs * .5); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
.loading-state-pf { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
font-size: ($spinner-size * .5); | ||
height: 100%; | ||
|
||
&:before { | ||
content: ""; | ||
height: 25%; | ||
display: block; | ||
} | ||
|
||
&.loading-state-pf-lg { | ||
font-size: ($spinner-size-lg * .5); | ||
} | ||
|
||
&.loading-state-pf-sm { | ||
font-size: ($spinner-size-sm * .5); | ||
} | ||
|
||
&.loading-state-pf-xs { | ||
font-size: ($spinner-size-xs * .5); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
categories: [Widgets] | ||
layout: page | ||
title: Loading State | ||
resource: true | ||
--- | ||
<div style="width: 350px;"> | ||
<div style="height: 150px;"> | ||
<div class="loading-state-pf"> | ||
<span class="spinner" aria-hidden="true"></span> | ||
Loading | ||
</div> | ||
</div> | ||
<div style="height: 150px;"> | ||
<div class="loading-state-pf loading-state-pf-lg"> | ||
<span class="spinner spinner-lg" aria-hidden="true"></span> | ||
Loading | ||
</div> | ||
</div> | ||
<div style="height: 150px;"> | ||
<div class="loading-state-pf"> | ||
<span class="spinner spinner-sm" aria-hidden="true"></span> | ||
Loading | ||
</div> | ||
</div> | ||
<div style="height: 150px;"> | ||
<div class="loading-state-pf"> | ||
<span class="spinner spinner-xs" aria-hidden="true"></span> | ||
Loading | ||
</div> | ||
</div> | ||
</div> |