feat: Update accessibility features in OrganizationChart component and tests
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user