Commit b71753f9 authored by Jose Blaya's avatar Jose Blaya
Browse files

Merge branch '137-review-app-accessibility-and-voiceover' into 'release/2.1.0'

Resolve "Review app accessibility and voiceover"

See merge request ios/client-library-apple!193
parents f4b55064 9bd814b3
......@@ -34,6 +34,8 @@ class PurchasePlanCell: UICollectionViewCell, Restylable {
isSelected = false
labelBestValue.text = L10n.Welcome.Plan.bestValue.uppercased()
selectedPlanImageView.alpha = 0
self.accessibilityTraits = UIAccessibilityTraits.button
self.isAccessibilityElement = true
}
func fill(plan: PurchasePlan) {
......@@ -57,6 +59,7 @@ class PurchasePlanCell: UICollectionViewCell, Restylable {
labelPlan.text = plan.title
labelDetail.text = plan.detail
labelPrice.text = L10n.Welcome.Plan.priceFormat(plan.monthlyPriceString)
self.accessibilityLabel = "\(plan.title) \(plan.detail) \(labelPrice.text)"
viewBestValue.isHidden = !plan.bestValue
if viewBestValue.isHidden {
bestValueHeightConstraint.constant = 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment