@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.
@@ -319,7 +319,7 @@ let DropDownButton = class DropDownButton extends Component {
319
319
  this.dropDown.hide();
320
320
  attributes(this.element, {
321
321
  ['aria-haspopup']: this.items.length || this.target ? 'true' : 'false', ['aria-expanded']: 'false',
322
- ['type']: 'button', ['aria-label']: this.element.textContent ? this.element.textContent : 'dropdownbutton'
322
+ ['type']: 'button'
323
323
  });
324
324
  if (this.cssClass) {
325
325
  addClass([div], this.cssClass.replace(/\s+/g, ' ').trim().split(' '));
@@ -419,6 +419,7 @@ let DropDownButton = class DropDownButton extends Component {
419
419
  }
420
420
  this.appendArrowSpan();
421
421
  this.setActiveElem([this.element]);
422
+ this.element.setAttribute('aria-label', this.element.textContent ? this.element.textContent : 'dropdownbutton');
422
423
  if ((this.target && !this.isColorPicker() && !this.createPopupOnClick) || !this.createPopupOnClick) {
423
424
  this.createPopup();
424
425
  }
@@ -1151,7 +1152,7 @@ let SplitButton = class SplitButton extends DropDownButton {
1151
1152
  setAria() {
1152
1153
  attributes(this.element, {
1153
1154
  'aria-expanded': 'false', 'aria-haspopup': 'true',
1154
- 'aria-label': this.element.textContent + ' splitbutton', 'aria-owns': this.element.id + '_dropdownbtn-popup'
1155
+ 'aria-label': this.element.textContent ? this.element.textContent + ' splitbutton' : 'splitbutton', 'aria-owns': this.element.id + '_dropdownbtn-popup'
1155
1156
  });
1156
1157
  }
1157
1158
  /**