Skip to content

Commit

Permalink
Correct a11y traversal order (#850)
Browse files Browse the repository at this point in the history
the traversal order hints were weirdly reversed, I don't believe it was
on purpose.
  • Loading branch information
FrancoisBlavoet authored and mshafrir-stripe committed Apr 4, 2019
1 parent 13e349c commit e33de29
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions stripe/res/layout/card_input_widget.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@
android:hint="@string/expiry_date_hint"
tools:ignore="UnusedAttribute"
tools:importantForAccessibility="yes"
android:accessibilityTraversalBefore="@id/et_card_number"
android:accessibilityTraversalAfter="@+id/et_cvc_number"
android:accessibilityTraversalBefore="@id/et_cvc_number"
android:accessibilityTraversalAfter="@+id/et_card_number"
android:nextFocusRight="@+id/et_cvc_number"
android:nextFocusForward="@+id/et_cvc_number"
android:nextFocusDown="@+id/et_cvc_number"
Expand All @@ -107,6 +107,7 @@
android:layout_height="wrap_content"
tools:ignore="UnusedAttribute"
tools:importantForAccessibility="yes"
android:accessibilityTraversalAfter="@+id/et_expiry_date"
android:nextFocusLeft="@id/et_expiry_date"
android:nextFocusUp="@id/et_expiry_date"
android:background="@android:color/transparent"
Expand Down

0 comments on commit e33de29

Please sign in to comment.