Skip to content

Commit 2b4fe13

Browse files
authored
Update ButtonBarPagerTabStripViewController.swift
Prefer the indicatorInfo's accessibilityLabel
1 parent 8defea0 commit 2b4fe13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/ButtonBarPagerTabStripViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ open class ButtonBarPagerTabStripViewController: PagerTabStripViewController, Pa
348348
}
349349
}
350350
cell.isAccessibilityElement = true
351-
cell.accessibilityLabel = cell.label.text
351+
cell.accessibilityLabel = indicatorInfo.accessibilityLabel ?? cell.label.text
352352
cell.accessibilityTraits.insert([.button, .header])
353353
return cell
354354
}

0 commit comments

Comments
 (0)