@syncfusion/ej2-lists 20.3.51 → 20.4.38

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)) {
@@ -1412,8 +1415,8 @@ let ListView = class ListView extends Component {
1412
1415
  headerTemplate: this.headerTemplate,
1413
1416
  groupTemplate: this.groupTemplate, expandCollapse: true, listClass: '',
1414
1417
  ariaAttributes: {
1415
- itemRole: 'option', listRole: 'presentation', itemText: '',
1416
- groupItemRole: 'option', wrapperRole: 'presentation'
1418
+ itemRole: 'listitem', listRole: 'group', itemText: '',
1419
+ groupItemRole: 'presentation', wrapperRole: 'presentation'
1417
1420
  },
1418
1421
  // eslint-disable-next-line
1419
1422
  fields: (this.fields.properties),
@@ -1471,6 +1474,7 @@ let ListView = class ListView extends Component {
1471
1474
  this.checkInternally(args, checkboxElement);
1472
1475
  }
1473
1476
  checkboxElement.setAttribute('aria-checked', frameElement.classList.contains(classNames.checked) ? 'true' : 'false');
1477
+ checkboxElement.setAttribute('aria-label', 'checkbox');
1474
1478
  if (this.checkBoxPosition === 'Left') {
1475
1479
  checkboxElement.classList.add(classNames.checkboxLeft);
1476
1480
  args.item.firstElementChild.classList.add(classNames.checkboxLeft);