Skip to content

Commit d168214

Browse files
committed
.
1 parent 4768209 commit d168214

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

src/helpers/__tests__/accessiblity.test.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ describe('computeAriaDisabled', () => {
433433
<View>
434434
<TextInput testID="default" />
435435
<TextInput testID="editable" editable />
436-
<TextInput testID="editable-false" editable={false} />
436+
<TextInput testID="editable-false" editable={false} />
437437
</View>,
438438
);
439439

@@ -448,7 +448,7 @@ describe('computeAriaDisabled', () => {
448448
<Pressable testID="default" role="button">
449449
<Text>Default Button</Text>
450450
</Pressable>
451-
<Pressable testID="disabled" role="button" disabled >
451+
<Pressable testID="disabled" role="button" disabled>
452452
<Text>Disabled Button</Text>
453453
</Pressable>
454454
<Pressable testID="disabled-false" role="button" disabled={false}>
@@ -466,12 +466,8 @@ describe('computeAriaDisabled', () => {
466466
render(
467467
<View>
468468
<Text>Default Text</Text>
469-
<Text disabled>
470-
Disabled Text
471-
</Text>
472-
<Text aria-disabled>
473-
ARIA Disabled Text
474-
</Text>
469+
<Text disabled>Disabled Text</Text>
470+
<Text aria-disabled>ARIA Disabled Text</Text>
475471
</View>,
476472
);
477473

src/helpers/accessibility.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ export function computeAriaDisabled(element: ReactTestInstance): boolean {
213213
if (isHostText(element) && props.disabled) {
214214
return true;
215215
}
216-
216+
217217
return props['aria-disabled'] ?? props.accessibilityState?.disabled ?? false;
218218
}
219219

0 commit comments

Comments
 (0)