Skip to content

Commit

Permalink
feat: Add signature accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinperignon committed Jul 27, 2023
1 parent 1ea6e95 commit 2086142
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Mail/Views/Menu Drawer/Folders/FolderCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ struct FolderCellContent: View {

private func collapseFolder() {
@InjectService var matomo: MatomoUtils
matomo.track(eventWithCategory: .menuDrawer, name: "collapseFolder")
matomo.track(eventWithCategory: .menuDrawer, name: "collapseFolder", value: !folder.isExpanded)

guard let liveFolder = folder.thaw() else { return }
try? liveFolder.realm?.write {
Expand Down
1 change: 1 addition & 0 deletions Mail/Views/New Message/Header Cells/SenderMenuCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ struct SenderMenuCell: View {
MailResourcesAsset.check.swiftUIImage
}
}
.accessibilityHint(MailResourcesStrings.Localizable.contentDescriptionButtonSelectSignature)

Text(signature.senderEmailIdn)
}
Expand Down
8 changes: 4 additions & 4 deletions Mail/Views/Switch User/AddMailboxView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ struct AddMailboxView: View {
.textStyle(.bodySecondary)
.padding(.bottom, 32)

TextField(MailResourcesStrings.Localizable.attachAddressInputHint, text: $newAddress)
TextField(MailResourcesStrings.Localizable.attachMailboxInputHint, text: $newAddress)
.textContentType(.emailAddress)
.keyboardType(.emailAddress)
.autocorrectionDisabled()
Expand All @@ -53,11 +53,11 @@ struct AddMailboxView: View {
}
.padding(.bottom, 4)

Text(MailResourcesStrings.Localizable.attachAddressInputHelper)
Text(MailResourcesStrings.Localizable.attachMailboxDescription2)
.textStyle(showError ? .labelError : .labelSecondary)
.padding(.bottom, 8)

SecureField(MailResourcesStrings.Localizable.attachAddressPasswordInputHint, text: $password)
SecureField(MailResourcesStrings.Localizable.attachMailboxPasswordInputHint, text: $password)
.textContentType(.password)
.padding([.vertical, .leading], 12)
.padding(.trailing, 16)
Expand All @@ -76,7 +76,7 @@ struct AddMailboxView: View {

Spacer()

MailButton(label: MailResourcesStrings.Localizable.buttonAttachEmailAddress) {
MailButton(label: MailResourcesStrings.Localizable.buttonAttachMailbox) {
addMailbox()
}
.disabled(buttonDisabled)
Expand Down

0 comments on commit 2086142

Please sign in to comment.