@clr/angular 12.0.6 → 12.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/clr-angular.umd.js +6 -1
- package/bundles/clr-angular.umd.js.map +1 -1
- package/clr-angular.metadata.json +1 -1
- package/esm2015/popover/signpost/signpost-trigger.js +7 -2
- package/fesm2015/clr-angular.js +6 -1
- package/fesm2015/clr-angular.js.map +1 -1
- package/package.json +2 -2
- package/popover/signpost/signpost-trigger.d.ts +1 -0
|
@@ -12590,6 +12590,12 @@
|
|
|
12590
12590
|
_this.focusOnClose();
|
|
12591
12591
|
}
|
|
12592
12592
|
}), this.signpostIdService.id.subscribe(function (idChange) { return (_this.ariaControl = idChange); }));
|
|
12593
|
+
this.addDefaultAriaLabel(this.el.nativeElement);
|
|
12594
|
+
};
|
|
12595
|
+
ClrSignpostTrigger.prototype.addDefaultAriaLabel = function (el) {
|
|
12596
|
+
if (!el.hasAttribute('aria-label')) {
|
|
12597
|
+
el.setAttribute('aria-label', this.commonStrings.keys.signpostToggle);
|
|
12598
|
+
}
|
|
12593
12599
|
};
|
|
12594
12600
|
ClrSignpostTrigger.prototype.focusOnClose = function () {
|
|
12595
12601
|
if (!i1.isPlatformBrowser(this.platformId)) {
|
|
@@ -12619,7 +12625,6 @@
|
|
|
12619
12625
|
selector: '[clrSignpostTrigger]',
|
|
12620
12626
|
host: {
|
|
12621
12627
|
class: 'signpost-trigger',
|
|
12622
|
-
'[attr.aria-label]': 'commonStrings.keys.signpostToggle',
|
|
12623
12628
|
'[attr.aria-expanded]': 'ariaExpanded',
|
|
12624
12629
|
'[attr.aria-controls]': 'ariaControl',
|
|
12625
12630
|
'[class.active]': 'isOpen',
|