feat: Update accessibility features in OrganizationChart component and tests

This commit is contained in:
Torsten Brendgen
2026-08-24 13:56:31 +02:00
parent 18fee714b8
commit 1a69236c3a
3 changed files with 8 additions and 6 deletions
+3 -1
View File
@@ -32,7 +32,9 @@ assert(webPart.indexOf("PropertyPaneSlider('maxDepth'") >= 0 && webPart.indexOf(
'Tree safety limits are missing.');
assert(component.indexOf("role='tree'") >= 0 && component.indexOf("role='treeitem'") >= 0,
'Accessible tree semantics are missing.');
assert(component.indexOf('aria-expanded') >= 0, 'Accessible expand/collapse behavior is missing.');
assert(component.indexOf('aria-expanded') >= 0 && component.indexOf('aria-selected={false}') >= 0,
'Accessible tree state is missing.');
assert(component.indexOf("role='presentation'") >= 0, 'Decorative profile images must be hidden from assistive technology.');
['bodyText', 'neutralSecondary', 'neutralLighter', 'themePrimary', 'neutralTertiary', 'white', 'neutralLight', 'focusBorder', 'errorText']
.forEach(function(slot) {
assert(styles.indexOf('[theme:' + slot + ', default:') >= 0, 'SharePoint theme slot is missing: ' + slot);