Skip to content

Commit d72a04b

Browse files
committed
tweaks
1 parent 37d73ae commit d72a04b

3 files changed

Lines changed: 3 additions & 7 deletions

File tree

packages/react-native/Libraries/Components/View/View.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,7 @@ component View(ref?: React.RefSetter<ViewInstance>, ...props: ViewProps) {
8383
resolvedProps.focusable = !tabIndex;
8484
}
8585

86-
// For web compatibility, setting a `role` implicitly makes the element
87-
// accessible, unless the role is `none`/`presentation` (which explicitly
88-
// removes semantics) or `accessible` was set explicitly.
86+
// For web compatibility, a `role` implicitly makes the element accessible.
8987
if (
9088
resolvedProps.accessible == null &&
9189
resolvedProps.role != null &&

packages/react-native/Libraries/Image/Image.android.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,7 @@ let BaseImage: AbstractImageAndroid = ({
285285
} else if (accessible != null) {
286286
nativeProps.accessible = accessible;
287287
} else if (
288-
// For web compatibility, setting a `role` implicitly makes the element
289-
// accessible, unless the role is `none`/`presentation`.
288+
// For web compatibility, a `role` implicitly makes the element accessible.
290289
nativeProps.role != null &&
291290
nativeProps.role !== 'none' &&
292291
nativeProps.role !== 'presentation'

packages/react-native/Libraries/Image/Image.ios.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,7 @@ let BaseImage: AbstractImageIOS = ({
178178
} else if (props.accessible != null) {
179179
accessible = props.accessible;
180180
} else if (
181-
// For web compatibility, setting a `role` implicitly makes the element
182-
// accessible, unless the role is `none`/`presentation`.
181+
// For web compatibility, a `role` implicitly makes the element accessible.
183182
props.role != null &&
184183
props.role !== 'none' &&
185184
props.role !== 'presentation'

0 commit comments

Comments
 (0)