@syncfusion/ej2-lists 20.3.56 → 20.4.40

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.
@@ -280,6 +280,9 @@ var ListBase;
280
280
  li = generateLI(createElement, curItem, fieldData, fields, curOpt.itemClass, options, componentInstance);
281
281
  li.classList.add(cssClass.level + '-' + ariaAttributes.level);
282
282
  li.setAttribute('aria-level', ariaAttributes.level.toString());
283
+ if (ariaAttributes.groupItemRole == 'presentation') {
284
+ li.removeAttribute('aria-level');
285
+ }
283
286
  anchorElement = li.querySelector('.' + cssClass.anchorWrap);
284
287
  // eslint-disable-next-line no-prototype-builtins
285
288
  if (fieldData.hasOwnProperty(fields.tooltip)) {
@@ -1438,8 +1441,8 @@ var ListView = /** @__PURE__ @class */ (function (_super) {
1438
1441
  headerTemplate: this.headerTemplate,
1439
1442
  groupTemplate: this.groupTemplate, expandCollapse: true, listClass: '',
1440
1443
  ariaAttributes: {
1441
- itemRole: 'option', listRole: 'presentation', itemText: '',
1442
- groupItemRole: 'option', wrapperRole: 'presentation'
1444
+ itemRole: 'listitem', listRole: 'group', itemText: '',
1445
+ groupItemRole: 'presentation', wrapperRole: 'presentation'
1443
1446
  },
1444
1447
  // eslint-disable-next-line
1445
1448
  fields: (this.fields.properties),
@@ -1497,6 +1500,7 @@ var ListView = /** @__PURE__ @class */ (function (_super) {
1497
1500
  this.checkInternally(args, checkboxElement);
1498
1501
  }
1499
1502
  checkboxElement.setAttribute('aria-checked', frameElement_1.classList.contains(classNames.checked) ? 'true' : 'false');
1503
+ checkboxElement.setAttribute('aria-label', 'checkbox');
1500
1504
  if (this.checkBoxPosition === 'Left') {
1501
1505
  checkboxElement.classList.add(classNames.checkboxLeft);
1502
1506
  args.item.firstElementChild.classList.add(classNames.checkboxLeft);