Revert "Merge branch 'feature/ONEAPP-5868' into 'develop'"
This reverts merge request !1010
This commit is contained in:
parent
3e5d4fe71f
commit
172173eb1b
@ -213,9 +213,7 @@ open class BarsIndicatorView: CarouselIndicator {
|
|||||||
let accessibleIndex = MVMCoreUIUtility.getOrdinalString(forIndex: NSNumber(value: index + 1))
|
let accessibleIndex = MVMCoreUIUtility.getOrdinalString(forIndex: NSNumber(value: index + 1))
|
||||||
else { return }
|
else { return }
|
||||||
|
|
||||||
let accessibilityValue = String(format: accessibleValueFormat, accessibleIndex, numberOfPages)
|
view.accessibilityLabel = String(format: accessibleValueFormat, accessibleIndex, numberOfPages)
|
||||||
view.accessibilityLabel = accessibilityValue
|
|
||||||
view.accessibilityIdentifier = accessibilityValue
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override func assessTouchOf(_ touchPoint_X: CGFloat) {
|
public override func assessTouchOf(_ touchPoint_X: CGFloat) {
|
||||||
|
|||||||
@ -372,9 +372,7 @@ open class Carousel: View {
|
|||||||
self.carouselAccessibilityElement = carouselAccessibilityElement
|
self.carouselAccessibilityElement = carouselAccessibilityElement
|
||||||
}
|
}
|
||||||
|
|
||||||
if let currentCell = collectionView.cellForItem(at: IndexPath(row: currentIndex, section: 0)), let pagingView = self.pagingView {
|
if let currentCell = collectionView.cellForItem(at: IndexPath(row: currentIndex, section: 0)) {
|
||||||
_accessibilityElements = [currentCell, carouselAccessibilityElement, pagingView]
|
|
||||||
} else if let currentCell = collectionView.cellForItem(at: IndexPath(row: currentIndex, section: 0)) {
|
|
||||||
_accessibilityElements = [currentCell, carouselAccessibilityElement]
|
_accessibilityElements = [currentCell, carouselAccessibilityElement]
|
||||||
} else {
|
} else {
|
||||||
_accessibilityElements = [carouselAccessibilityElement]
|
_accessibilityElements = [carouselAccessibilityElement]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user