@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.
- package/CHANGELOG.md +8 -0
- package/dist/ej2-splitbuttons.min.js +3 -3
- package/dist/ej2-splitbuttons.umd.min.js +3 -3
- package/dist/ej2-splitbuttons.umd.min.js.map +1 -1
- package/dist/es6/ej2-splitbuttons.es2015.js +3 -2
- package/dist/es6/ej2-splitbuttons.es2015.js.map +1 -1
- package/dist/es6/ej2-splitbuttons.es5.js +3 -2
- package/dist/es6/ej2-splitbuttons.es5.js.map +1 -1
- package/dist/global/ej2-splitbuttons.min.js +3 -3
- package/dist/global/ej2-splitbuttons.min.js.map +1 -1
- package/dist/global/index.d.ts +2 -2
- package/package.json +7 -7
- package/src/drop-down-button/drop-down-button.js +1 -1
- package/src/split-button/split-button.js +1 -1
|
@@ -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'
|
|
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
|
/**
|