mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-26 12:16:07 +01:00
PM-1798 Fix voice over on buttons when adding new item from iOS extension (#2510)
This commit is contained in:
parent
c1673a1bbf
commit
bf463926a3
@ -72,6 +72,7 @@ namespace Bit.iOS.Core.Controllers
|
||||
UsernameCell.TextField.ReturnKeyType = UIReturnKeyType.Next;
|
||||
UsernameCell.Button.TitleLabel.Font = UIFont.FromName("bwi-font", 28f);
|
||||
UsernameCell.Button.SetTitle(BitwardenIcons.Generate, UIControlState.Normal);
|
||||
UsernameCell.Button.AccessibilityLabel = AppResources.GenerateUsername;
|
||||
UsernameCell.Button.TouchUpInside += (sender, e) =>
|
||||
{
|
||||
LaunchUsernameGeneratorFlow();
|
||||
@ -86,6 +87,7 @@ namespace Bit.iOS.Core.Controllers
|
||||
PasswordCell.TextField.ReturnKeyType = UIReturnKeyType.Next;
|
||||
PasswordCell.Button.TitleLabel.Font = UIFont.FromName("bwi-font", 28f);
|
||||
PasswordCell.Button.SetTitle(BitwardenIcons.Generate, UIControlState.Normal);
|
||||
PasswordCell.Button.AccessibilityLabel = AppResources.GeneratePassword;
|
||||
PasswordCell.Button.TouchUpInside += (sender, e) =>
|
||||
{
|
||||
PerformSegue("passwordGeneratorSegue", this);
|
||||
|
@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using Bit.App.Resources;
|
||||
using Bit.Core;
|
||||
using Bit.iOS.Core.Controllers;
|
||||
using Bit.iOS.Core.Utilities;
|
||||
@ -171,10 +172,13 @@ namespace Bit.iOS.Core.Views
|
||||
var button = useSecondaryButton ? SecondButton : Button;
|
||||
button.TitleLabel.Font = UIFont.FromName("bwi-font", 28f);
|
||||
button.SetTitle(BitwardenIcons.Eye, UIControlState.Normal);
|
||||
button.AccessibilityLabel = AppResources.ToggleVisibility;
|
||||
button.AccessibilityHint = AppResources.PasswordIsNotVisibleTapToShow;
|
||||
button.TouchUpInside += (sender, e) =>
|
||||
{
|
||||
TextField.SecureTextEntry = !TextField.SecureTextEntry;
|
||||
button.SetTitle(TextField.SecureTextEntry ? BitwardenIcons.Eye : BitwardenIcons.EyeSlash, UIControlState.Normal);
|
||||
button.AccessibilityHint = TextField.SecureTextEntry ? AppResources.PasswordIsNotVisibleTapToShow : AppResources.PasswordIsVisibleTapToHide;
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user