Skip to content

Commit 569f4a7

Browse files
List, TagBox, Splitter: localize aria-roledescription attribute (T1267579) (#28622)
1 parent 7767641 commit 569f4a7

File tree

35 files changed

+130
-37
lines changed

35 files changed

+130
-37
lines changed

packages/devextreme/js/__internal/ui/list/m_list.base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ export const ListBase = CollectionWidget.inherit({
676676
const elementAria = {
677677
role: 'group',
678678
// eslint-disable-next-line spellcheck/spell-checker
679-
roledescription: 'list',
679+
roledescription: messageLocalization.format('dxList-ariaRoleDescription'),
680680
};
681681

682682
this.setAria(elementAria, this.$element());

packages/devextreme/js/__internal/ui/m_tag_box.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ const TagBox = (SelectBox as any).inherit({
441441
const elementAria = {
442442
role: 'application',
443443
// eslint-disable-next-line spellcheck/spell-checker
444-
roledescription: 'tagbox',
444+
roledescription: messageLocalization.format('dxTagBox-ariaRoleDescription'),
445445
};
446446

447447
this.setAria(elementAria, this.$element());

packages/devextreme/js/__internal/ui/splitter/resize_handle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ class ResizeHandle extends Widget<ResizeHandleOptions> {
304304
this.setAria({
305305
role: 'application',
306306
// eslint-disable-next-line spellcheck/spell-checker
307-
roledescription: 'separator',
307+
roledescription: messageLocalization.format('dxSplitter-resizeHandleAriaRoleDescription'),
308308
label: messageLocalization.format('dxSplitter-resizeHandleAriaLabel'),
309309
});
310310
}

packages/devextreme/js/localization/messages/ar.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"dxList-selectAll-indeterminate": "Half-checked",
5353
"dxList-selectAll-checked": "Checked",
5454
"dxList-selectAll-notChecked": "Not checked",
55+
"dxList-ariaRoleDescription": "List",
5556

5657
"dxScrollView-pullingDownText": "للتحديث اسحب للأسفل...",
5758
"dxScrollView-pulledDownText": "حرر للتحديث ...",
@@ -324,6 +325,7 @@
324325
"dxTagBox-allSelected": "كل العناصر المحددة ({0})",
325326
"dxTagBox-moreSelected": "{0} المزيد",
326327
"dxTagBox-tagRoleDescription": "Tag. Press the delete button to remove this tag",
328+
"dxTagBox-ariaRoleDescription": "Tag box",
327329

328330
"vizExport-printingButtonText": "Print",
329331
"vizExport-titleMenuText": "تصدير / طباعة",
@@ -736,6 +738,7 @@
736738
"dxMultiView-itemAriaRoleDescription": "View",
737739
"dxMultiView-itemAriaLabel": "{0} of {1}",
738740

739-
"dxSplitter-resizeHandleAriaLabel": "Split bar"
741+
"dxSplitter-resizeHandleAriaLabel": "Split bar",
742+
"dxSplitter-resizeHandleAriaRoleDescription": "Separator"
740743
}
741744
}

packages/devextreme/js/localization/messages/ca.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"dxList-selectAll-indeterminate": "Half-checked",
5353
"dxList-selectAll-checked": "Checked",
5454
"dxList-selectAll-notChecked": "Not checked",
55+
"dxList-ariaRoleDescription": "List",
5556

5657
"dxScrollView-pullingDownText": "Tireu cap avall per refrescar -se ...",
5758
"dxScrollView-pulledDownText": "Allibereu a refresc ...",
@@ -324,6 +325,7 @@
324325
"dxTagBox-allSelected": "Tot seleccionat ({0})",
325326
"dxTagBox-moreSelected": "{0} Més",
326327
"dxTagBox-tagRoleDescription": "Tag. Press the delete button to remove this tag",
328+
"dxTagBox-ariaRoleDescription": "Tag box",
327329

328330
"vizExport-printingButtonText": "Imprimir",
329331
"vizExport-titleMenuText": "Exportació/impressió",
@@ -736,6 +738,7 @@
736738
"dxMultiView-itemAriaRoleDescription": "View",
737739
"dxMultiView-itemAriaLabel": "{0} of {1}",
738740

739-
"dxSplitter-resizeHandleAriaLabel": "Split bar"
741+
"dxSplitter-resizeHandleAriaLabel": "Split bar",
742+
"dxSplitter-resizeHandleAriaRoleDescription": "Separator"
740743
}
741744
}

packages/devextreme/js/localization/messages/cs.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"dxList-selectAll-indeterminate": "Half-checked",
5353
"dxList-selectAll-checked": "Checked",
5454
"dxList-selectAll-notChecked": "Not checked",
55+
"dxList-ariaRoleDescription": "List",
5556

5657
"dxScrollView-pullingDownText": "Stáhněte dolů pro obnovení...",
5758
"dxScrollView-pulledDownText": "Uvolněte pro obnovení...",
@@ -324,6 +325,7 @@
324325
"dxTagBox-allSelected": "Vše vybráno ({0})",
325326
"dxTagBox-moreSelected": "{0} navíc",
326327
"dxTagBox-tagRoleDescription": "Tag. Press the delete button to remove this tag",
328+
"dxTagBox-ariaRoleDescription": "Tag box",
327329

328330
"vizExport-printingButtonText": "Tisk",
329331
"vizExport-titleMenuText": "Export/import",
@@ -736,6 +738,7 @@
736738
"dxMultiView-itemAriaRoleDescription": "View",
737739
"dxMultiView-itemAriaLabel": "{0} of {1}",
738740

739-
"dxSplitter-resizeHandleAriaLabel": "Split bar"
741+
"dxSplitter-resizeHandleAriaLabel": "Split bar",
742+
"dxSplitter-resizeHandleAriaRoleDescription": "Separator"
740743
}
741744
}

packages/devextreme/js/localization/messages/de.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"dxList-selectAll-indeterminate": "Half-checked",
5353
"dxList-selectAll-checked": "Checked",
5454
"dxList-selectAll-notChecked": "Not checked",
55+
"dxList-ariaRoleDescription": "List",
5556

5657
"dxScrollView-pullingDownText": "Zum Aktualisieren nach unten ziehen",
5758
"dxScrollView-pulledDownText": "Zum Aktualisieren loslassen",
@@ -324,6 +325,7 @@
324325
"dxTagBox-allSelected": "Alle ausgewählt ({0})",
325326
"dxTagBox-moreSelected": "{0} weitere",
326327
"dxTagBox-tagRoleDescription": "Tag. Press the delete button to remove this tag",
328+
"dxTagBox-ariaRoleDescription": "Tag box",
327329

328330
"vizExport-printingButtonText": "Drucken",
329331
"vizExport-titleMenuText": "Export/Druck",
@@ -736,6 +738,7 @@
736738
"dxMultiView-itemAriaRoleDescription": "View",
737739
"dxMultiView-itemAriaLabel": "{0} of {1}",
738740

739-
"dxSplitter-resizeHandleAriaLabel": "Split bar"
741+
"dxSplitter-resizeHandleAriaLabel": "Split bar",
742+
"dxSplitter-resizeHandleAriaRoleDescription": "Separator"
740743
}
741744
}

packages/devextreme/js/localization/messages/el.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"dxList-selectAll-indeterminate": "Half-checked",
5353
"dxList-selectAll-checked": "Checked",
5454
"dxList-selectAll-notChecked": "Not checked",
55+
"dxList-ariaRoleDescription": "List",
5556

5657
"dxScrollView-pullingDownText": "Σύρετε απο πάνω προς τα κάτω για ανανέωση...",
5758
"dxScrollView-pulledDownText": "Απελευθερώστε για ανανέωση...",
@@ -324,6 +325,7 @@
324325
"dxTagBox-allSelected": "Όλα επιλέχθηκαν ({0})",
325326
"dxTagBox-moreSelected": "{0} περισσότερα",
326327
"dxTagBox-tagRoleDescription": "Tag. Press the delete button to remove this tag",
328+
"dxTagBox-ariaRoleDescription": "Tag box",
327329

328330
"vizExport-printingButtonText": "Εκτύπωση",
329331
"vizExport-titleMenuText": "Εξαγωγή/Εκτύπωση",
@@ -736,6 +738,7 @@
736738
"dxMultiView-itemAriaRoleDescription": "View",
737739
"dxMultiView-itemAriaLabel": "{0} of {1}",
738740

739-
"dxSplitter-resizeHandleAriaLabel": "Split bar"
741+
"dxSplitter-resizeHandleAriaLabel": "Split bar",
742+
"dxSplitter-resizeHandleAriaRoleDescription": "Separator"
740743
}
741744
}

packages/devextreme/js/localization/messages/en.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"dxList-selectAll-indeterminate": "Half-checked",
5353
"dxList-selectAll-checked": "Checked",
5454
"dxList-selectAll-notChecked": "Not checked",
55+
"dxList-ariaRoleDescription": "List",
5556

5657
"dxScrollView-pullingDownText": "Pull down to refresh...",
5758
"dxScrollView-pulledDownText": "Release to refresh...",
@@ -324,6 +325,7 @@
324325
"dxTagBox-allSelected": "All selected ({0})",
325326
"dxTagBox-moreSelected": "{0} more",
326327
"dxTagBox-tagRoleDescription": "Tag. Press the delete button to remove this tag",
328+
"dxTagBox-ariaRoleDescription": "Tag box",
327329

328330
"vizExport-printingButtonText": "Print",
329331
"vizExport-titleMenuText": "Exporting/Printing",
@@ -736,6 +738,7 @@
736738
"dxMultiView-itemAriaRoleDescription": "View",
737739
"dxMultiView-itemAriaLabel": "{0} of {1}",
738740

739-
"dxSplitter-resizeHandleAriaLabel": "Split bar"
741+
"dxSplitter-resizeHandleAriaLabel": "Split bar",
742+
"dxSplitter-resizeHandleAriaRoleDescription": "Separator"
740743
}
741744
}

packages/devextreme/js/localization/messages/es.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"dxList-selectAll-indeterminate": "Half-checked",
5353
"dxList-selectAll-checked": "Checked",
5454
"dxList-selectAll-notChecked": "Not checked",
55+
"dxList-ariaRoleDescription": "List",
5556

5657
"dxScrollView-pullingDownText": "Desliza hacia abajo para actualizar...",
5758
"dxScrollView-pulledDownText": "Suelta para actualizar...",
@@ -324,6 +325,7 @@
324325
"dxTagBox-allSelected": "Todos seleccionados ({0})",
325326
"dxTagBox-moreSelected": "{0} más",
326327
"dxTagBox-tagRoleDescription": "Tag. Press the delete button to remove this tag",
328+
"dxTagBox-ariaRoleDescription": "Tag box",
327329

328330
"vizExport-printingButtonText": "Imprimir",
329331
"vizExport-titleMenuText": "Exportar/Imprimir",
@@ -736,6 +738,7 @@
736738
"dxMultiView-itemAriaRoleDescription": "View",
737739
"dxMultiView-itemAriaLabel": "{0} of {1}",
738740

739-
"dxSplitter-resizeHandleAriaLabel": "Split bar"
741+
"dxSplitter-resizeHandleAriaLabel": "Split bar",
742+
"dxSplitter-resizeHandleAriaRoleDescription": "Separator"
740743
}
741744
}

0 commit comments

Comments
 (0)