-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(carousel): add an opportunity to use a keyboard for navigation (#…
…5270) * feat(carousel): add an opportunity to use a keyboard for navigation
- Loading branch information
Showing
15 changed files
with
295 additions
and
58 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
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
34 changes: 34 additions & 0 deletions
34
demo/src/app/components/+carousel/demos/accessibility/accessibility.html
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 +1,35 @@ | ||
<p>The <code>alt</code> attribute is meant to help users not miss any content, so make sure your text is helpful to anyone not seeing the image. </p> | ||
|
||
<h4>Keyboard interaction</h4> | ||
<table class="table table-bordered"> | ||
<tbody> | ||
<tr> | ||
<td class="col-xs-3"> | ||
<code> | ||
LEFT_ARROW | ||
</code> | ||
</td> | ||
<td class="col-xs-9"> | ||
Move to a previous slide | ||
</td> | ||
</tr> | ||
<tr> | ||
<td class="col-xs-3"> | ||
<code> | ||
RIGHT_ARROW | ||
</code> | ||
</td> | ||
<td class="col-xs-9"> | ||
Move to a next slide | ||
</td> | ||
</tr> | ||
<tr> | ||
<td class="col-xs-3"> | ||
<code>SPACE</code> or <code>ENTER</code> | ||
</td> | ||
<td class="col-xs-9"> | ||
Move to a next slide | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> |
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 was deleted.
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
7 changes: 7 additions & 0 deletions
7
demo/src/app/components/+carousel/demos/pause-on-focus/pause-on-focus.ts
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,7 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'demo-carousel-pause-on-focus', | ||
templateUrl: './pause-on-focus.html' | ||
}) | ||
export class DemoCarouselPauseOnFocusComponent {} |
23 changes: 23 additions & 0 deletions
23
demo/src/app/components/+carousel/demos/pause-on-hover/pause-on-hover.html
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 @@ | ||
<carousel [noPause]="false"> | ||
<slide> | ||
<img src="assets/images/nature/4.jpg" alt="First slide" style="display: block; width: 100%;"> | ||
<div class="carousel-caption d-none d-md-block"> | ||
<h3>First slide label</h3> | ||
<p>Nulla vitae elit libero, a pharetra augue mollis interdum.</p> | ||
</div> | ||
</slide> | ||
<slide> | ||
<img src="assets/images/nature/5.jpg" alt="Second slide" style="display: block; width: 100%;"> | ||
<div class="carousel-caption d-none d-md-block"> | ||
<h3>Second slide label</h3> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> | ||
</div> | ||
</slide> | ||
<slide> | ||
<img src="assets/images/nature/6.jpg" alt="Third slide" style="display: block; width: 100%;"> | ||
<div class="carousel-caption d-none d-md-block"> | ||
<h3>Third slide label</h3> | ||
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur.</p> | ||
</div> | ||
</slide> | ||
</carousel> |
7 changes: 7 additions & 0 deletions
7
demo/src/app/components/+carousel/demos/pause-on-hover/pause-on-hover.ts
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,7 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'demo-carousel-pause-on-hover', | ||
templateUrl: './pause-on-hover.html' | ||
}) | ||
export class DemoCarouselPauseOnHoverComponent {} |
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.