Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Commit

Permalink
Start work for wait with absolute element
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackbaud-PatrickOFriel committed Apr 11, 2017
1 parent dae4600 commit f3a7009
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/app/components/wait/wait-demo.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@


<div style="height: 200px; width: 200px; margin-top: 10px;">
A large area that can be waited with the <code>sky-wait</code> directive.

<sky-wait [isWaiting]="isWaiting">
</sky-wait>

<div>
<p style="position:absolute; background-color: red">
A large area that can be waited with the <code>sky-wait</code> directive.
</p>
</div>

</div>

<button type="button" class="sky-btn sky-btn-primary" (click)="showPageWait(true)">Show page wait</button>
Expand Down
13 changes: 13 additions & 0 deletions src/modules/wait/fixtures/wait.component.visual-fixture.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,16 @@
</div>

</div>

<div id="screenshot-wait-absolute" style="height: 200px; width: 200px; margin-top: 10px;">

<sky-wait [isWaiting]="isWaiting">
</sky-wait>

<div>
<p style="position:absolute; background-color: red">
A large area that can be waited with the <code>sky-wait</code> directive.
</p>
</div>

</div>
1 change: 1 addition & 0 deletions src/modules/wait/wait.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
left: 0;
bottom: 0;
background-color: $sky-wait-mask-color;
z-index: $sky-page-wait-z-index;
}

.sky-wait-mask-loading-fixed {
Expand Down
11 changes: 11 additions & 0 deletions src/modules/wait/wait.component.visual-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@ describe('wait component', function () {
});
});

it('should display wait on parent to block absolute item', function () {
return browser
.setupTest('/wait.html')
.click('.sky-test-wait')
.compareScreenshot({
screenshotName: 'wait_component_absolute',
selector: '#screenshot-wait-absolute',
checkAccessibility: true
});
});

it('should display nonblocking wait on parent', function () {
return browser
.setupTest('/wait.html')
Expand Down

0 comments on commit f3a7009

Please sign in to comment.