Skip to content

Commit

Permalink
[Tech#564] Added .notEnabled accessibility trait when component is no…
Browse files Browse the repository at this point in the history
…t enabled
  • Loading branch information
LouisBorleeAdevinta committed Oct 24, 2023
1 parent 848e0e6 commit 85a3f73
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ public final class ButtonUIView: UIView {

// Update the user interaction enabled
self.clearButton.isUserInteractionEnabled = state.isUserInteractionEnabled
if state.isUserInteractionEnabled {
if !state.isUserInteractionEnabled {
self.accessibilityTraits.insert(.notEnabled)
} else {
self.accessibilityTraits.remove(.notEnabled)
Expand Down

0 comments on commit 85a3f73

Please sign in to comment.