diff --git a/src/app/components/progressspinner/progressspinner.ts b/src/app/components/progressspinner/progressspinner.ts index ff7179dffd9..07889a40c1a 100755 --- a/src/app/components/progressspinner/progressspinner.ts +++ b/src/app/components/progressspinner/progressspinner.ts @@ -7,7 +7,7 @@ import { ChangeDetectionStrategy, Component, Input, NgModule, ViewEncapsulation @Component({ selector: 'p-progressSpinner', template: ` -
+
@@ -46,6 +46,11 @@ export class ProgressSpinner { * @group Props */ @Input() animationDuration: string = '2s'; + /** + * Used to define a aria label attribute the current element. + * @group Props + */ + @Input() ariaLabel: string | undefined; } @NgModule({ diff --git a/src/app/showcase/doc/progressspinner/basicdoc.ts b/src/app/showcase/doc/progressspinner/basicdoc.ts index ed44e81a0d9..195eef17982 100644 --- a/src/app/showcase/doc/progressspinner/basicdoc.ts +++ b/src/app/showcase/doc/progressspinner/basicdoc.ts @@ -8,16 +8,16 @@ import { Code } from '../../domain/code';

An infinite spin animation is displayed by default.

- +
` }) export class BasicDoc { code: Code = { - basic: ``, + basic: ``, html: `
- +
`, typescript: ` import { Component } from '@angular/core';