Specify disabled=false explicitly in accessibility state for Contextual Menu items and subitems (#3333)
* Specify disabled=false explicitly for contextual menu items and subitems * Change files --------- Co-authored-by: Adam Gleitman <adgleitm@microsoft.com>
This commit is contained in:
Родитель
4336172af6
Коммит
40943f4779
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"type": "patch",
|
||||
"comment": "Specify disabled=false explicitly for contextual menu items and subitems",
|
||||
"packageName": "@fluentui-react-native/contextual-menu",
|
||||
"email": "adgleitm@microsoft.com",
|
||||
"dependentChangeType": "patch"
|
||||
}
|
|
@ -115,7 +115,7 @@ export const ContextualMenuItem = compose<ContextualMenuItemType>({
|
|||
accessible: true,
|
||||
accessibilityLabel: accessibilityLabel,
|
||||
accessibilityRole: 'menuitem',
|
||||
accessibilityState: { disabled: state.disabled, selected: state.selected },
|
||||
accessibilityState: { disabled: state.disabled ?? false, selected: state.selected },
|
||||
accessibilityValue: { text: itemKey },
|
||||
onAccessibilityTap: onAccTap,
|
||||
disabled,
|
||||
|
|
|
@ -158,7 +158,7 @@ export const SubmenuItem = compose<SubmenuItemType>({
|
|||
accessible: true,
|
||||
accessibilityLabel: accessibilityLabel,
|
||||
accessibilityRole: 'menuitem',
|
||||
accessibilityState: { disabled: state.disabled, selected: state.selected },
|
||||
accessibilityState: { disabled: state.disabled ?? false, selected: state.selected },
|
||||
accessibilityValue: { text: itemKey },
|
||||
disabled,
|
||||
focusable: !disabled,
|
||||
|
|
Загрузка…
Ссылка в новой задаче