@syncfusion/ej2-splitbuttons 23.1.36 → 23.1.41

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.
@@ -353,7 +353,7 @@ var DropDownButton = /** @__PURE__ @class */ (function (_super) {
353
353
  this.dropDown.refreshPosition(this.element);
354
354
  }
355
355
  this.dropDown.hide();
356
- attributes(this.element, (_a = {}, _a['aria-haspopup'] = this.items.length || this.target ? 'true' : 'false', _a['aria-expanded'] = 'false', _a['type'] = 'button', _a['aria-label'] = this.element.textContent ? this.element.textContent : 'dropdownbutton', _a));
356
+ attributes(this.element, (_a = {}, _a['aria-haspopup'] = this.items.length || this.target ? 'true' : 'false', _a['aria-expanded'] = 'false', _a['type'] = 'button', _a));
357
357
  if (this.cssClass) {
358
358
  addClass([div], this.cssClass.replace(/\s+/g, ' ').trim().split(' '));
359
359
  }
@@ -452,6 +452,7 @@ var DropDownButton = /** @__PURE__ @class */ (function (_super) {
452
452
  }
453
453
  this.appendArrowSpan();
454
454
  this.setActiveElem([this.element]);
455
+ this.element.setAttribute('aria-label', this.element.textContent ? this.element.textContent : 'dropdownbutton');
455
456
  if ((this.target && !this.isColorPicker() && !this.createPopupOnClick) || !this.createPopupOnClick) {
456
457
  this.createPopup();
457
458
  }
@@ -1206,7 +1207,7 @@ var SplitButton = /** @__PURE__ @class */ (function (_super) {
1206
1207
  SplitButton.prototype.setAria = function () {
1207
1208
  attributes(this.element, {
1208
1209
  'aria-expanded': 'false', 'aria-haspopup': 'true',
1209
- 'aria-label': this.element.textContent + ' splitbutton', 'aria-owns': this.element.id + '_dropdownbtn-popup'
1210
+ 'aria-label': this.element.textContent ? this.element.textContent + ' splitbutton' : 'splitbutton', 'aria-owns': this.element.id + '_dropdownbtn-popup'
1210
1211
  });
1211
1212
  };
1212
1213
  /**