From a2bac9d36851c3a8c9e47fb72674ed741dd5ed60 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 22 Jul 2019 12:04:17 -0400 Subject: [PATCH] a11y labeling --- .../CipherViewCell/CipherViewCell.xaml | 19 +++++-- src/App/Pages/Accounts/HomePage.xaml | 4 +- src/App/Pages/Accounts/LockPage.xaml | 8 ++- src/App/Pages/Accounts/LoginPage.xaml | 4 +- src/App/Pages/Accounts/RegisterPage.xaml | 8 ++- .../Pages/Generator/GeneratorHistoryPage.xaml | 4 +- src/App/Pages/Vault/AddEditPage.xaml | 32 +++++++++--- src/App/Pages/Vault/AttachmentsPage.xaml | 4 +- src/App/Pages/Vault/PasswordHistoryPage.xaml | 4 +- src/App/Pages/Vault/ViewPage.xaml | 52 ++++++++++++++----- src/App/Resources/AppResources.Designer.cs | 27 ++++++++++ src/App/Resources/AppResources.resx | 9 ++++ 12 files changed, 140 insertions(+), 35 deletions(-) diff --git a/src/App/Controls/CipherViewCell/CipherViewCell.xaml b/src/App/Controls/CipherViewCell/CipherViewCell.xaml index feb596f26..44f6145a7 100644 --- a/src/App/Controls/CipherViewCell/CipherViewCell.xaml +++ b/src/App/Controls/CipherViewCell/CipherViewCell.xaml @@ -3,6 +3,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="Bit.App.Controls.CipherViewCell" xmlns:controls="clr-namespace:Bit.App.Controls" + xmlns:u="clr-namespace:Bit.App.Utilities" xmlns:ff="clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms"> + StyleClass="list-icon, list-icon-platform" + AutomationProperties.IsInAccessibleTree="False" /> + IsVisible="False" + AutomationProperties.IsInAccessibleTree="False" /> @@ -79,7 +82,9 @@ StyleClass="list-title-icon" Margin="5, 0, 0, 0" Text="" - IsVisible="{Binding Cipher.Shared, Mode=OneWay}" /> + IsVisible="{Binding Cipher.Shared, Mode=OneWay}" + AutomationProperties.IsInAccessibleTree="True" + AutomationProperties.Name="{u:I18n Shared}" /> + IsVisible="{Binding Cipher.HasAttachments, Mode=OneWay}" + AutomationProperties.IsInAccessibleTree="True" + AutomationProperties.Name="{u:I18n Attachments}" /> + HorizontalOptions="EndAndExpand" + AutomationProperties.IsInAccessibleTree="True" + AutomationProperties.Name="{u:I18n Options}" /> diff --git a/src/App/Pages/Accounts/HomePage.xaml b/src/App/Pages/Accounts/HomePage.xaml index 3c5c388dc..ea4562cf2 100644 --- a/src/App/Pages/Accounts/HomePage.xaml +++ b/src/App/Pages/Accounts/HomePage.xaml @@ -16,7 +16,9 @@ + Clicked="Settings_Clicked" + AutomationProperties.IsInAccessibleTree="True" + AutomationProperties.Name="{u:I18n Options}"> diff --git a/src/App/Pages/Accounts/LockPage.xaml b/src/App/Pages/Accounts/LockPage.xaml index 4945fdf41..b8bb0d585 100644 --- a/src/App/Pages/Accounts/LockPage.xaml +++ b/src/App/Pages/Accounts/LockPage.xaml @@ -58,7 +58,9 @@ Command="{Binding TogglePasswordCommand}" Grid.Row="0" Grid.Column="1" - Grid.RowSpan="2" /> + Grid.RowSpan="2" + AutomationProperties.IsInAccessibleTree="True" + AutomationProperties.Name="{u:I18n ToggleVisibility}" /> @@ -91,7 +93,9 @@ Command="{Binding TogglePasswordCommand}" Grid.Row="0" Grid.Column="1" - Grid.RowSpan="2" /> + Grid.RowSpan="2" + AutomationProperties.IsInAccessibleTree="True" + AutomationProperties.Name="{u:I18n ToggleVisibility}" />