From 48d26708d35f3cc80e2502c68d193a2fced5cd59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yi=C4=9Fit=20FINDIKLI?= Date: Fri, 24 Sep 2021 12:45:29 +0300 Subject: [PATCH] Fixed #10667 - Picklist | aria-label support for Buttons --- src/app/components/picklist/picklist.ts | 40 +++++++++----- .../components/picklist/picklistdemo.html | 52 ++++++++++++++++++- 2 files changed, 78 insertions(+), 14 deletions(-) diff --git a/src/app/components/picklist/picklist.ts b/src/app/components/picklist/picklist.ts index 201aa9cb32c..0ebc2b163ae 100755 --- a/src/app/components/picklist/picklist.ts +++ b/src/app/components/picklist/picklist.ts @@ -12,10 +12,10 @@ import {ObjectUtils, UniqueComponentId} from 'primeng/utils'; template: `
- - - - + + + +
@@ -49,10 +49,10 @@ import {ObjectUtils, UniqueComponentId} from 'primeng/utils';
- - - - + + + +
@@ -85,10 +85,10 @@ import {ObjectUtils, UniqueComponentId} from 'primeng/utils';
- - - - + + + +
`, @@ -107,6 +107,22 @@ export class PickList implements AfterViewChecked,AfterContentInit { @Input() sourceHeader: string; + @Input() rightButtonAriaLabel: string; + + @Input() leftButtonAriaLabel: string; + + @Input() allRightButtonAriaLabel: string; + + @Input() allLeftButtonAriaLabel: string; + + @Input() upButtonAriaLabel: string; + + @Input() downButtonAriaLabel: string; + + @Input() topButtonAriaLabel: string; + + @Input() bottomButtonAriaLabel: string; + @Input() targetHeader: string; @Input() responsive: boolean; diff --git a/src/app/showcase/components/picklist/picklistdemo.html b/src/app/showcase/components/picklist/picklistdemo.html index 3a57f322904..0a6af3a596c 100755 --- a/src/app/showcase/components/picklist/picklistdemo.html +++ b/src/app/showcase/components/picklist/picklistdemo.html @@ -273,6 +273,54 @@
Properties
null Defines a string that labels the filter input of target list. + + rightButtonAriaLabel + string + null + Defines a string that labels the move to right button for accessibility. + + + leftButtonAriaLabel + string + null + Defines a string that labels the move to left button for accessibility. + + + allRightButtonAriaLabel + string + null + Defines a string that labels the move to all right button for accessibility. + + + allLeftButtonAriaLabel + string + null + Defines a string that labels the move to all left button for accessibility. + + + upButtonAriaLabel + string + null + Defines a string that labels the move to up button for accessibility. + + + downButtonAriaLabel + string + null + Defines a string that labels the move to down button for accessibility. + + + topButtonAriaLabel + string + null + Defines a string that labels the move to top button for accessibility. + + + bottomButtonAriaLabel + string + null + Defines a string that labels the move to bottom button for accessibility. +
@@ -492,9 +540,9 @@
Dependencies
export class PickListDemo { sourceProducts: Product[]; - + targetProducts: Product[]; - + constructor(private carService: ProductService) { } ngOnInit() {