update hint for deactivated.
This commit is contained in:
parent
6c5f80aa0b
commit
9d15c7c3db
@ -64,6 +64,7 @@ public typealias ActionBlockConfirmation = () -> (Bool)
|
||||
changeStateNoAnimation(isEnabled ? isOn : false)
|
||||
backgroundColor = isEnabled ? (isOn ? containerTintColor.on : containerTintColor.off) : disabledTintColor.container
|
||||
knobView.backgroundColor = isEnabled ? (isOn ? knobTintColor.on : knobTintColor.off) : disabledTintColor.knob
|
||||
accessibilityHint = MVMCoreUIUtility.hardcodedString(withKey: isEnabled ? "AccToggleHint" : "AccDisabled")
|
||||
}
|
||||
}
|
||||
|
||||
@ -306,6 +307,7 @@ public typealias ActionBlockConfirmation = () -> (Bool)
|
||||
|
||||
override open func accessibilityActivate() -> Bool {
|
||||
// Hold state in case User wanted isAnimated to remain off.
|
||||
guard isUserInteractionEnabled == true else { return false }
|
||||
let isAnimatedState = isAnimated
|
||||
isAnimated = false
|
||||
sendActions(for: .touchUpInside)
|
||||
|
||||
@ -46,8 +46,6 @@ import Foundation
|
||||
super.setupView()
|
||||
addMolecule(stack)
|
||||
stack.restack()
|
||||
accessibilityHint = toggle.accessibilityHint
|
||||
accessibilityTraits = toggle.accessibilityTraits
|
||||
}
|
||||
|
||||
//-----------------------------------------------------
|
||||
@ -81,6 +79,8 @@ import Foundation
|
||||
}
|
||||
|
||||
func updateAccessibilityLabel() {
|
||||
accessibilityHint = toggle.accessibilityHint
|
||||
accessibilityTraits = toggle.accessibilityTraits
|
||||
accessibilityValue = toggle.accessibilityValue
|
||||
let linkShowing = eyebrowHeadlineBodyLink.link.titleLabel?.text?.count ?? 0 > 0
|
||||
if !linkShowing && accessoryView == nil {
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
// MARK: Accessibility
|
||||
"AccCloseButton" = "Close";
|
||||
"swipe_to_select_with_action_hint" = "swipe up or down to select action, then double tap to select.";
|
||||
|
||||
"AccDisabled" = "Disabled";
|
||||
|
||||
// MARK: Tab
|
||||
"AccTab" = ", tab";
|
||||
|
||||
@ -8,6 +8,7 @@
|
||||
|
||||
// Accessibility
|
||||
"swipe_to_select_with_action_hint" = "deslízate hacia arriba o hacia abajo para seleccionar la acción, luego toca dos veces para seleccionar.";
|
||||
"AccDisabled" = "desactivado";
|
||||
|
||||
"AccCloseButton" = "Cerrar";
|
||||
// Tab
|
||||
|
||||
@ -8,6 +8,7 @@
|
||||
|
||||
// Accessibility
|
||||
"swipe_to_select_with_action_hint" = "deslízate hacia arriba o hacia abajo para seleccionar la acción, luego toca dos veces para seleccionar.";
|
||||
"AccDisabled" = "desactivado";
|
||||
|
||||
"AccCloseButton" = "Cerrar";
|
||||
// Tab
|
||||
|
||||
Loading…
Reference in New Issue
Block a user