From da5fc572720e5b6032408f321bc3fe590d566160 Mon Sep 17 00:00:00 2001 From: Daksh Bhardwaj Date: Tue, 13 Sep 2022 16:24:16 +0530 Subject: [PATCH 1/2] added documnetatuin for 'aria-modal' prop --- docs/accessibility.md | 10 ++++++++++ docs/view.md | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/docs/accessibility.md b/docs/accessibility.md index 30f4d743c6c..9de5bd500c8 100644 --- a/docs/accessibility.md +++ b/docs/accessibility.md @@ -204,6 +204,16 @@ A Boolean value indicating whether the accessibility elements contained within t For example, in a window that contains sibling views `A` and `B`, setting `accessibilityElementsHidden` to `true` on view `B` causes VoiceOver to ignore the elements in the view `B`. This is similar to the Android property `importantForAccessibility="no-hide-descendants"`. +### `aria-modal`
iOS
+ +Boolean value indicating whether VoiceOver should ignore the elements within views that are siblings of the receiver. + +| Type | +| ---- | +| bool | + +--- + ### `importantForAccessibility`
Android
In the case of two overlapping UI components with the same parent, default accessibility focus can have unpredictable behavior. The `importantForAccessibility` property will resolve this by controlling if a view fires accessibility events and if it is reported to accessibility services. It can be set to `auto`, `yes`, `no` and `no-hide-descendants` (the last value will force accessibility services to ignore the component and all of its children). diff --git a/docs/view.md b/docs/view.md index 6be5e2864ac..72ab93b038f 100644 --- a/docs/view.md +++ b/docs/view.md @@ -249,6 +249,16 @@ When `true`, indicates that the view is an accessibility element. By default, al --- +### `aria-modal`
iOS
+ +Boolean value indicating whether VoiceOver should ignore the elements within views that are siblings of the receiver. Has precedence over the `accessibilityViewIsModal` prop. + +| Type | +| ---- | +| bool | + +--- + ### `collapsable`
Android
Views that are only used to layout their children or otherwise don't draw anything may be automatically removed from the native hierarchy as an optimization. Set this property to `false` to disable this optimization and ensure that this `View` exists in the native view hierarchy. From 64eba77b709c68941a132642b1adbacf61fa905e Mon Sep 17 00:00:00 2001 From: dakshbhardwaj Date: Fri, 23 Sep 2022 11:44:38 +0530 Subject: [PATCH 2/2] added default values --- docs/accessibility.md | 6 +++--- docs/view.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/accessibility.md b/docs/accessibility.md index 9de5bd500c8..a094fe2f5da 100644 --- a/docs/accessibility.md +++ b/docs/accessibility.md @@ -208,9 +208,9 @@ For example, in a window that contains sibling views `A` and `B`, setting `acces Boolean value indicating whether VoiceOver should ignore the elements within views that are siblings of the receiver. -| Type | -| ---- | -| bool | +| Type | Default | +| ---- | ------- | +| bool | false | --- diff --git a/docs/view.md b/docs/view.md index 72ab93b038f..514200bf3b4 100644 --- a/docs/view.md +++ b/docs/view.md @@ -253,9 +253,9 @@ When `true`, indicates that the view is an accessibility element. By default, al Boolean value indicating whether VoiceOver should ignore the elements within views that are siblings of the receiver. Has precedence over the `accessibilityViewIsModal` prop. -| Type | -| ---- | -| bool | +| Type | Default | +| ---- | ------- | +| bool | false | ---