Merge branch 'bugfix/notificationAccessibility' into 'develop'
Accessibility fixes for Notification component See merge request BPHV_MIPS/vds_ios!189
This commit is contained in:
commit
5a0f10cd4b
@ -338,6 +338,16 @@ open class Notification: View {
|
|||||||
layer.cornerRadius = UIScreen.main.bounds.width == bounds.width ? 0 : 4.0
|
layer.cornerRadius = UIScreen.main.bounds.width == bounds.width ? 0 : 4.0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
///Updating the accessiblity values i.e elements, label, value other items for the component.
|
||||||
|
open override func updateAccessibility() {
|
||||||
|
super.updateAccessibility()
|
||||||
|
accessibilityElements = [closeButton, typeIcon, titleLabel, subTitleLabel, buttonGroup]
|
||||||
|
typeIcon.accessibilityLabel = style.rawValue
|
||||||
|
typeIcon.imageView.image?.isAccessibilityElement = false
|
||||||
|
closeButton.accessibilityTraits = [.button]
|
||||||
|
closeButton.accessibilityLabel = "Close Notification"
|
||||||
|
}
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Private Methods
|
// MARK: - Private Methods
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user