Skip to content

fix(hyper-ref): expose disabled accessibility state for non-actionable refs - #1334

Draft
ovalerio280788 wants to merge 2 commits into
masterfrom
fix/hyper-ref-disabled-accessibility-state
Draft

fix(hyper-ref): expose disabled accessibility state for non-actionable refs#1334
ovalerio280788 wants to merge 2 commits into
masterfrom
fix/hyper-ref-disabled-accessibility-state

Conversation

@ovalerio280788

@ovalerio280788 ovalerio280788 commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Summary

  • derive a disabled flag for refs that have no actionable target (action, href, or non-analytics behavior action)
  • pass disabled semantics to native wrappers by setting disabled on TouchableOpacity and accessibilityState.disabled on both touchable and nested text wrappers
  • avoid attaching text press/responder handlers when the ref is disabled so Appium accessibility state aligns with interaction state
  • treat behavior-level href as actionable so href-only press behaviors are not marked disabled

Implementation notes

  • disabled state is computed from both ref attributes and press behavior attributes (action/href)
  • nested text refs now skip onPress/onLongPress/responder handlers when disabled
  • touchable refs expose disabled state through both disabled prop and accessibilityState

Evidence

Test Platform Recording
Appium DOM capture: disabled ref reports enabled=false iOS image
Appium DOM capture: enabled ref reports enabled=true iOS TBD defined if the PR makes sense

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant