CXTDT-546824 - Notification Status / Close icon
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
07110ed5cc
commit
f65cc2115b
@ -264,8 +264,6 @@ open class Notification: View {
|
|||||||
isAccessibilityElement = false
|
isAccessibilityElement = false
|
||||||
accessibilityElements = [closeButton, typeIcon, titleLabel, subTitleLabel, buttonGroup]
|
accessibilityElements = [closeButton, typeIcon, titleLabel, subTitleLabel, buttonGroup]
|
||||||
closeButton.accessibilityTraits = [.button]
|
closeButton.accessibilityTraits = [.button]
|
||||||
closeButton.accessibilityLabel = "Close Notification"
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Resets to default settings.
|
/// Resets to default settings.
|
||||||
@ -325,7 +323,6 @@ open class Notification: View {
|
|||||||
let iconColor = surface == .dark ? VDSColor.paletteWhite : VDSColor.paletteBlack
|
let iconColor = surface == .dark ? VDSColor.paletteWhite : VDSColor.paletteBlack
|
||||||
typeIcon.name = style.iconName
|
typeIcon.name = style.iconName
|
||||||
typeIcon.color = iconColor
|
typeIcon.color = iconColor
|
||||||
typeIcon.accessibilityLabel = style.accessibilityText
|
|
||||||
closeButton.color = iconColor
|
closeButton.color = iconColor
|
||||||
closeButton.isHidden = hideCloseButton
|
closeButton.isHidden = hideCloseButton
|
||||||
}
|
}
|
||||||
@ -374,6 +371,12 @@ open class Notification: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
open override func updateAccessibility() {
|
||||||
|
super.updateAccessibility()
|
||||||
|
closeButton.accessibilityLabel = "Close Notification"
|
||||||
|
typeIcon.accessibilityLabel = style.accessibilityText
|
||||||
|
}
|
||||||
|
|
||||||
private func setConstraints() {
|
private func setConstraints() {
|
||||||
labelViewAndButtonViewConstraint?.deactivate()
|
labelViewAndButtonViewConstraint?.deactivate()
|
||||||
labelViewBottomConstraint?.deactivate()
|
labelViewBottomConstraint?.deactivate()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user