File tree 5 files changed +42
-0
lines changed
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';
27
27
import { IconAccessibilityDemo } from './icon/icon-a11y' ;
28
28
import { InputAccessibilityDemo } from './input/input-a11y' ;
29
29
import { MenuAccessibilityDemo } from './menu/menu-a11y' ;
30
+ import { ProgressBarAccessibilityDemo } from './progress-bar/progress-bar-a11y' ;
30
31
import { ProgressSpinnerAccessibilityDemo } from './progress-spinner/progress-spinner-a11y' ;
31
32
import { SliderAccessibilityDemo } from './slider/slider-a11y' ;
32
33
import { SlideToggleAccessibilityDemo } from './slide-toggle/slide-toggle-a11y' ;
@@ -72,6 +73,7 @@ export class AccessibilityRoutingModule {}
72
73
IconAccessibilityDemo ,
73
74
InputAccessibilityDemo ,
74
75
MenuAccessibilityDemo ,
76
+ ProgressBarAccessibilityDemo ,
75
77
ProgressSpinnerAccessibilityDemo ,
76
78
RadioAccessibilityDemo ,
77
79
ToolbarAccessibilityDemo ,
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ export class AccessibilityDemo {
31
31
{ name : 'Icon' , route : 'icon' } ,
32
32
{ name : 'Input' , route : 'input' } ,
33
33
{ name : 'Menu' , route : 'menu' } ,
34
+ { name : 'Progress bar' , route : 'progress-bar' } ,
34
35
{ name : 'Progress spinner' , route : 'progress-spinner' } ,
35
36
{ name : 'Radio buttons' , route : 'radio' } ,
36
37
{ 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';
14
14
import { IconAccessibilityDemo } from './icon/icon-a11y' ;
15
15
import { InputAccessibilityDemo } from './input/input-a11y' ;
16
16
import { MenuAccessibilityDemo } from './menu/menu-a11y' ;
17
+ import { ProgressBarAccessibilityDemo } from './progress-bar/progress-bar-a11y' ;
17
18
import { ProgressSpinnerAccessibilityDemo } from './progress-spinner/progress-spinner-a11y' ;
18
19
import { SliderAccessibilityDemo } from './slider/slider-a11y' ;
19
20
import { SlideToggleAccessibilityDemo } from './slide-toggle/slide-toggle-a11y' ;
@@ -34,6 +35,7 @@ export const ACCESSIBILITY_DEMO_ROUTES: Routes = [
34
35
{ path : 'icon' , component : IconAccessibilityDemo } ,
35
36
{ path : 'input' , component : InputAccessibilityDemo } ,
36
37
{ path : 'menu' , component : MenuAccessibilityDemo } ,
38
+ { path : 'progress-bar' , component : ProgressBarAccessibilityDemo } ,
37
39
{ path : 'progress-spinner' , component : ProgressSpinnerAccessibilityDemo } ,
38
40
{ path : 'radio' , component : RadioAccessibilityDemo } ,
39
41
{ path : 'slider' , component : SliderAccessibilityDemo } ,
You can’t perform that action at this time.
0 commit comments