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)
|
changeStateNoAnimation(isEnabled ? isOn : false)
|
||||||
backgroundColor = isEnabled ? (isOn ? containerTintColor.on : containerTintColor.off) : disabledTintColor.container
|
backgroundColor = isEnabled ? (isOn ? containerTintColor.on : containerTintColor.off) : disabledTintColor.container
|
||||||
knobView.backgroundColor = isEnabled ? (isOn ? knobTintColor.on : knobTintColor.off) : disabledTintColor.knob
|
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 {
|
override open func accessibilityActivate() -> Bool {
|
||||||
// Hold state in case User wanted isAnimated to remain off.
|
// Hold state in case User wanted isAnimated to remain off.
|
||||||
|
guard isUserInteractionEnabled == true else { return false }
|
||||||
let isAnimatedState = isAnimated
|
let isAnimatedState = isAnimated
|
||||||
isAnimated = false
|
isAnimated = false
|
||||||
sendActions(for: .touchUpInside)
|
sendActions(for: .touchUpInside)
|
||||||
|
|||||||
@ -46,8 +46,6 @@ import Foundation
|
|||||||
super.setupView()
|
super.setupView()
|
||||||
addMolecule(stack)
|
addMolecule(stack)
|
||||||
stack.restack()
|
stack.restack()
|
||||||
accessibilityHint = toggle.accessibilityHint
|
|
||||||
accessibilityTraits = toggle.accessibilityTraits
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------
|
//-----------------------------------------------------
|
||||||
@ -81,6 +79,8 @@ import Foundation
|
|||||||
}
|
}
|
||||||
|
|
||||||
func updateAccessibilityLabel() {
|
func updateAccessibilityLabel() {
|
||||||
|
accessibilityHint = toggle.accessibilityHint
|
||||||
|
accessibilityTraits = toggle.accessibilityTraits
|
||||||
accessibilityValue = toggle.accessibilityValue
|
accessibilityValue = toggle.accessibilityValue
|
||||||
let linkShowing = eyebrowHeadlineBodyLink.link.titleLabel?.text?.count ?? 0 > 0
|
let linkShowing = eyebrowHeadlineBodyLink.link.titleLabel?.text?.count ?? 0 > 0
|
||||||
if !linkShowing && accessoryView == nil {
|
if !linkShowing && accessoryView == nil {
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
// MARK: Accessibility
|
// MARK: Accessibility
|
||||||
"AccCloseButton" = "Close";
|
"AccCloseButton" = "Close";
|
||||||
"swipe_to_select_with_action_hint" = "swipe up or down to select action, then double tap to select.";
|
"swipe_to_select_with_action_hint" = "swipe up or down to select action, then double tap to select.";
|
||||||
|
"AccDisabled" = "Disabled";
|
||||||
|
|
||||||
// MARK: Tab
|
// MARK: Tab
|
||||||
"AccTab" = ", tab";
|
"AccTab" = ", tab";
|
||||||
|
|||||||
@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
// Accessibility
|
// 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.";
|
"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";
|
"AccCloseButton" = "Cerrar";
|
||||||
// Tab
|
// Tab
|
||||||
|
|||||||
@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
// Accessibility
|
// 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.";
|
"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";
|
"AccCloseButton" = "Cerrar";
|
||||||
// Tab
|
// Tab
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user