File tree Expand file tree Collapse file tree 5 files changed +42
-0
lines changed Expand file tree Collapse file tree 5 files changed +42
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ import {DatepickerAccessibilityDemo} from './datepicker/datepicker-a11y';
2727import { IconAccessibilityDemo } from './icon/icon-a11y' ;
2828import { InputAccessibilityDemo } from './input/input-a11y' ;
2929import { MenuAccessibilityDemo } from './menu/menu-a11y' ;
30+ import { ProgressBarAccessibilityDemo } from './progress-bar/progress-bar-a11y' ;
3031import { ProgressSpinnerAccessibilityDemo } from './progress-spinner/progress-spinner-a11y' ;
3132import { SliderAccessibilityDemo } from './slider/slider-a11y' ;
3233import { SlideToggleAccessibilityDemo } from './slide-toggle/slide-toggle-a11y' ;
@@ -72,6 +73,7 @@ export class AccessibilityRoutingModule {}
7273 IconAccessibilityDemo ,
7374 InputAccessibilityDemo ,
7475 MenuAccessibilityDemo ,
76+ ProgressBarAccessibilityDemo ,
7577 ProgressSpinnerAccessibilityDemo ,
7678 RadioAccessibilityDemo ,
7779 ToolbarAccessibilityDemo ,
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ export class AccessibilityDemo {
3131 { name : 'Icon' , route : 'icon' } ,
3232 { name : 'Input' , route : 'input' } ,
3333 { name : 'Menu' , route : 'menu' } ,
34+ { name : 'Progress bar' , route : 'progress-bar' } ,
3435 { name : 'Progress spinner' , route : 'progress-spinner' } ,
3536 { name : 'Radio buttons' , route : 'radio' } ,
3637 { name : 'Slider' , route : 'slider' } ,
Original file line number Diff line number Diff line change 1+ < section >
2+ < h2 > Survey progress (Determinate progress bar)</ h2 >
3+ < md-progress-bar mode ="determinate " [value] ="surveyProgress " color ="primary "
4+ aria-label ="Survey progress ">
5+ </ md-progress-bar >
6+ </ section >
7+
8+ < section >
9+ < h2 > Video progress (Progress bar with buffer) </ h2 >
10+ < md-progress-bar [value] ="videoPlayValue " [bufferValue] ="videoBufferValue " mode ="buffer "
11+ color ="primary " aria-label ="Video progress ">
12+ </ md-progress-bar >
13+ </ section >
14+
15+ < section >
16+ < h2 > Loading content progress (Indeterminate progress bar)</ h2 >
17+ < md-progress-bar mode ="indeterminate " color ="warn " aria-label ="Loading content ">
18+ </ md-progress-bar >
19+ </ section >
20+
21+ < section >
22+ < h2 > Search progress (Query progress bar)</ h2 >
23+ < md-progress-bar mode ="query " color ="accent " aria-label ="Searching "> </ md-progress-bar >
24+ </ section >
Original file line number Diff line number Diff line change 1+ import { Component } from '@angular/core' ;
2+
3+
4+ @Component ( {
5+ moduleId : module . id ,
6+ selector : 'progress-bar-a11y' ,
7+ templateUrl : 'progress-bar-a11y.html' ,
8+ } )
9+ export class ProgressBarAccessibilityDemo {
10+ surveyProgress : number = 30 ;
11+ videoPlayValue : number = 20 ;
12+ videoBufferValue : number = 60 ;
13+ }
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import {DatepickerAccessibilityDemo} from './datepicker/datepicker-a11y';
1414import { IconAccessibilityDemo } from './icon/icon-a11y' ;
1515import { InputAccessibilityDemo } from './input/input-a11y' ;
1616import { MenuAccessibilityDemo } from './menu/menu-a11y' ;
17+ import { ProgressBarAccessibilityDemo } from './progress-bar/progress-bar-a11y' ;
1718import { ProgressSpinnerAccessibilityDemo } from './progress-spinner/progress-spinner-a11y' ;
1819import { SliderAccessibilityDemo } from './slider/slider-a11y' ;
1920import { SlideToggleAccessibilityDemo } from './slide-toggle/slide-toggle-a11y' ;
@@ -34,6 +35,7 @@ export const ACCESSIBILITY_DEMO_ROUTES: Routes = [
3435 { path : 'icon' , component : IconAccessibilityDemo } ,
3536 { path : 'input' , component : InputAccessibilityDemo } ,
3637 { path : 'menu' , component : MenuAccessibilityDemo } ,
38+ { path : 'progress-bar' , component : ProgressBarAccessibilityDemo } ,
3739 { path : 'progress-spinner' , component : ProgressSpinnerAccessibilityDemo } ,
3840 { path : 'radio' , component : RadioAccessibilityDemo } ,
3941 { path : 'slider' , component : SliderAccessibilityDemo } ,
You can’t perform that action at this time.
0 commit comments