From a4504101d2302a1ff48b807d30c428ad24a5d718 Mon Sep 17 00:00:00 2001 From: Rudrank Date: Wed, 7 Aug 2019 16:27:02 +0530 Subject: [PATCH 1/5] Adding reactions --- .../Views/EmojiPicker/EmojiCollectionViewCell.swift | 3 +++ .../External/RCEmojiKit/Views/EmojiPicker/EmojiPicker.swift | 6 ++++++ Rocket.Chat/External/RCEmojiKit/cs.lproj/RCEmojiKit.strings | 4 ++++ Rocket.Chat/External/RCEmojiKit/de.lproj/RCEmojiKit.strings | 4 ++++ Rocket.Chat/External/RCEmojiKit/el.lproj/RCEmojiKit.strings | 3 +++ Rocket.Chat/External/RCEmojiKit/en.lproj/RCEmojiKit.strings | 3 +++ Rocket.Chat/External/RCEmojiKit/es.lproj/RCEmojiKit.strings | 3 +++ Rocket.Chat/External/RCEmojiKit/it.lproj/RCEmojiKit.strings | 3 +++ Rocket.Chat/External/RCEmojiKit/ja.lproj/RCEmojiKit.strings | 3 +++ Rocket.Chat/External/RCEmojiKit/pl.lproj/RCEmojiKit.strings | 4 ++++ .../External/RCEmojiKit/pt-BR.lproj/RCEmojiKit.strings | 4 ++++ .../External/RCEmojiKit/zh-Hans.lproj/RCEmojiKit.strings | 3 +++ .../External/RCEmojiKit/zh-Hant.lproj/RCEmojiKit.strings | 3 +++ 13 files changed, 46 insertions(+) diff --git a/Rocket.Chat/External/RCEmojiKit/Views/EmojiPicker/EmojiCollectionViewCell.swift b/Rocket.Chat/External/RCEmojiKit/Views/EmojiPicker/EmojiCollectionViewCell.swift index a3732175c2..1a15189c1f 100644 --- a/Rocket.Chat/External/RCEmojiKit/Views/EmojiPicker/EmojiCollectionViewCell.swift +++ b/Rocket.Chat/External/RCEmojiKit/Views/EmojiPicker/EmojiCollectionViewCell.swift @@ -22,6 +22,7 @@ final class EmojiCollectionViewCell: UICollectionViewCell { emojiLabel.baselineAdjustment = .alignCenters emojiLabel.font = UIFont.systemFont(ofSize: 32) emojiLabel.backgroundColor = UIColor.white + emojiLabel.isAccessibilityElement = true return emojiLabel }() @@ -44,8 +45,10 @@ final class EmojiCollectionViewCell: UICollectionViewCell { guard let url = url else { return } ImageManager.loadImage(with: url, into: emojiImageView) emojiImageView.isHidden = false + emojiImageView.isAccessibilityElement = true case .standard(let string): emojiLabel.text = string + emojiImageView.accessibilityLabel = string emojiLabel.isHidden = false } } diff --git a/Rocket.Chat/External/RCEmojiKit/Views/EmojiPicker/EmojiPicker.swift b/Rocket.Chat/External/RCEmojiKit/Views/EmojiPicker/EmojiPicker.swift index dc5b677978..c3b8f73a7b 100644 --- a/Rocket.Chat/External/RCEmojiKit/Views/EmojiPicker/EmojiPicker.swift +++ b/Rocket.Chat/External/RCEmojiKit/Views/EmojiPicker/EmojiPicker.swift @@ -121,6 +121,7 @@ final class EmojiPicker: UIView, RCEmojiKitLocalizable { skinToneButton.layer.cornerRadius = skinToneButton.frame.width/2 skinToneButton.backgroundColor = currentSkinTone.color skinToneButton.showsTouchWhenHighlighted = true + skinToneButton.accessibilityLabel = localized("skinTone.label") } } @@ -128,6 +129,7 @@ final class EmojiPicker: UIView, RCEmojiKitLocalizable { currentSkinToneIndex += 1 currentSkinToneIndex = currentSkinToneIndex % skinTones.count skinToneButton.backgroundColor = currentSkinTone.color + skinToneButton.accessibilityHint = currentSkinTone.name emojisCollectionView.reloadData() } @@ -180,6 +182,8 @@ final class EmojiPicker: UIView, RCEmojiKitLocalizable { let categoryItems = currentCategories.map { category -> UITabBarItem in let image = UIImage(named: category.name) ?? UIImage(named: "custom") let item = UITabBarItem(title: nil, image: image, selectedImage: image) + item.isAccessibilityElement = true + item.accessibilityLabel = category.name item.imageInsets = UIEdgeInsets(top: 6, left: 0, bottom: -6, right: 0) return item } @@ -230,6 +234,8 @@ extension EmojiPicker: UICollectionViewDataSource { if let file = emoji.imageUrl { cell.emoji = .custom(URL(string: file)) + cell.emojiImageView.accessibilityLabel = emoji.name + cell.emojiImageView.accessibilityTraits = .staticText } else { var toneModifier = "" if emoji.supportsTones, let currentTone = currentSkinTone.name { toneModifier = "_\(currentTone)" } diff --git a/Rocket.Chat/External/RCEmojiKit/cs.lproj/RCEmojiKit.strings b/Rocket.Chat/External/RCEmojiKit/cs.lproj/RCEmojiKit.strings index 523ce258f9..12bce0f830 100644 --- a/Rocket.Chat/External/RCEmojiKit/cs.lproj/RCEmojiKit.strings +++ b/Rocket.Chat/External/RCEmojiKit/cs.lproj/RCEmojiKit.strings @@ -21,3 +21,7 @@ "categories.flags" = "FLAGS"; //TODO "reactorlist.title" = "Reactions"; //TODO + +// Accessibility + +"skinTone.label" = "Change skintone"; //TODO diff --git a/Rocket.Chat/External/RCEmojiKit/de.lproj/RCEmojiKit.strings b/Rocket.Chat/External/RCEmojiKit/de.lproj/RCEmojiKit.strings index 241b5eeb61..11134895ad 100644 --- a/Rocket.Chat/External/RCEmojiKit/de.lproj/RCEmojiKit.strings +++ b/Rocket.Chat/External/RCEmojiKit/de.lproj/RCEmojiKit.strings @@ -21,3 +21,7 @@ "categories.flags" = "FLAGGEN"; "reactorlist.title" = "Reaktionen"; + +// Accessibility + +"skinTone.label" = "Change skintone"; //TODO diff --git a/Rocket.Chat/External/RCEmojiKit/el.lproj/RCEmojiKit.strings b/Rocket.Chat/External/RCEmojiKit/el.lproj/RCEmojiKit.strings index 7feeb104dc..d44688eef3 100644 --- a/Rocket.Chat/External/RCEmojiKit/el.lproj/RCEmojiKit.strings +++ b/Rocket.Chat/External/RCEmojiKit/el.lproj/RCEmojiKit.strings @@ -22,3 +22,6 @@ "reactorlist.title" = "Αντιδράσεις"; +// Accessibility + +"skinTone.label" = "Change skintone"; //TODO diff --git a/Rocket.Chat/External/RCEmojiKit/en.lproj/RCEmojiKit.strings b/Rocket.Chat/External/RCEmojiKit/en.lproj/RCEmojiKit.strings index 4c1953a008..fbddfc29be 100644 --- a/Rocket.Chat/External/RCEmojiKit/en.lproj/RCEmojiKit.strings +++ b/Rocket.Chat/External/RCEmojiKit/en.lproj/RCEmojiKit.strings @@ -22,3 +22,6 @@ "reactorlist.title" = "Reactions"; +// Accessibility + +"skinTone.label" = "Change skintone"; diff --git a/Rocket.Chat/External/RCEmojiKit/es.lproj/RCEmojiKit.strings b/Rocket.Chat/External/RCEmojiKit/es.lproj/RCEmojiKit.strings index 4c1953a008..64bac8f680 100644 --- a/Rocket.Chat/External/RCEmojiKit/es.lproj/RCEmojiKit.strings +++ b/Rocket.Chat/External/RCEmojiKit/es.lproj/RCEmojiKit.strings @@ -22,3 +22,6 @@ "reactorlist.title" = "Reactions"; +// Accessibility + +"skinTone.label" = "Change skintone"; //TODO diff --git a/Rocket.Chat/External/RCEmojiKit/it.lproj/RCEmojiKit.strings b/Rocket.Chat/External/RCEmojiKit/it.lproj/RCEmojiKit.strings index f1e461f9bb..9e2b5c08f8 100644 --- a/Rocket.Chat/External/RCEmojiKit/it.lproj/RCEmojiKit.strings +++ b/Rocket.Chat/External/RCEmojiKit/it.lproj/RCEmojiKit.strings @@ -22,3 +22,6 @@ "reactorlist.title" = "Reazioni"; +// Accessibility + +"skinTone.label" = "Change skintone"; //TODO diff --git a/Rocket.Chat/External/RCEmojiKit/ja.lproj/RCEmojiKit.strings b/Rocket.Chat/External/RCEmojiKit/ja.lproj/RCEmojiKit.strings index 4c1953a008..64bac8f680 100644 --- a/Rocket.Chat/External/RCEmojiKit/ja.lproj/RCEmojiKit.strings +++ b/Rocket.Chat/External/RCEmojiKit/ja.lproj/RCEmojiKit.strings @@ -22,3 +22,6 @@ "reactorlist.title" = "Reactions"; +// Accessibility + +"skinTone.label" = "Change skintone"; //TODO diff --git a/Rocket.Chat/External/RCEmojiKit/pl.lproj/RCEmojiKit.strings b/Rocket.Chat/External/RCEmojiKit/pl.lproj/RCEmojiKit.strings index 9cc33e5cdc..94afacd5b6 100644 --- a/Rocket.Chat/External/RCEmojiKit/pl.lproj/RCEmojiKit.strings +++ b/Rocket.Chat/External/RCEmojiKit/pl.lproj/RCEmojiKit.strings @@ -21,3 +21,7 @@ "categories.flags" = "FLAGI"; "reactorlist.title" = "Reakcje"; + +// Accessibility + +"skinTone.label" = "Change skintone"; //TODO diff --git a/Rocket.Chat/External/RCEmojiKit/pt-BR.lproj/RCEmojiKit.strings b/Rocket.Chat/External/RCEmojiKit/pt-BR.lproj/RCEmojiKit.strings index ee2e969519..e29335ad0b 100644 --- a/Rocket.Chat/External/RCEmojiKit/pt-BR.lproj/RCEmojiKit.strings +++ b/Rocket.Chat/External/RCEmojiKit/pt-BR.lproj/RCEmojiKit.strings @@ -21,3 +21,7 @@ "categories.flags" = "BANDEIRAS"; "reactorlist.title" = "Reações"; + +// Accessibility + +"skinTone.label" = "Change skintone"; //TODO diff --git a/Rocket.Chat/External/RCEmojiKit/zh-Hans.lproj/RCEmojiKit.strings b/Rocket.Chat/External/RCEmojiKit/zh-Hans.lproj/RCEmojiKit.strings index 4c1953a008..64bac8f680 100644 --- a/Rocket.Chat/External/RCEmojiKit/zh-Hans.lproj/RCEmojiKit.strings +++ b/Rocket.Chat/External/RCEmojiKit/zh-Hans.lproj/RCEmojiKit.strings @@ -22,3 +22,6 @@ "reactorlist.title" = "Reactions"; +// Accessibility + +"skinTone.label" = "Change skintone"; //TODO diff --git a/Rocket.Chat/External/RCEmojiKit/zh-Hant.lproj/RCEmojiKit.strings b/Rocket.Chat/External/RCEmojiKit/zh-Hant.lproj/RCEmojiKit.strings index 4c1953a008..64bac8f680 100644 --- a/Rocket.Chat/External/RCEmojiKit/zh-Hant.lproj/RCEmojiKit.strings +++ b/Rocket.Chat/External/RCEmojiKit/zh-Hant.lproj/RCEmojiKit.strings @@ -22,3 +22,6 @@ "reactorlist.title" = "Reactions"; +// Accessibility + +"skinTone.label" = "Change skintone"; //TODO From 6548a619b52eb77b113591083f8ca1004fc88ef1 Mon Sep 17 00:00:00 2001 From: Rudrank Date: Mon, 12 Aug 2019 02:57:56 +0530 Subject: [PATCH 2/5] add currentSkinTone --- .../External/RCEmojiKit/Views/EmojiPicker/EmojiPicker.swift | 6 +++++- Rocket.Chat/External/RCEmojiKit/cs.lproj/RCEmojiKit.strings | 3 ++- Rocket.Chat/External/RCEmojiKit/de.lproj/RCEmojiKit.strings | 3 ++- Rocket.Chat/External/RCEmojiKit/el.lproj/RCEmojiKit.strings | 3 ++- Rocket.Chat/External/RCEmojiKit/en.lproj/RCEmojiKit.strings | 3 ++- Rocket.Chat/External/RCEmojiKit/es.lproj/RCEmojiKit.strings | 3 ++- Rocket.Chat/External/RCEmojiKit/fr.lproj/RCEmojiKit.strings | 6 ++++++ Rocket.Chat/External/RCEmojiKit/it.lproj/RCEmojiKit.strings | 3 ++- Rocket.Chat/External/RCEmojiKit/ja.lproj/RCEmojiKit.strings | 3 ++- Rocket.Chat/External/RCEmojiKit/pl.lproj/RCEmojiKit.strings | 3 ++- .../External/RCEmojiKit/pt-BR.lproj/RCEmojiKit.strings | 3 ++- .../External/RCEmojiKit/pt-PT.lproj/RCEmojiKit.strings | 5 +++++ .../External/RCEmojiKit/zh-Hans.lproj/RCEmojiKit.strings | 3 ++- .../External/RCEmojiKit/zh-Hant.lproj/RCEmojiKit.strings | 3 ++- 14 files changed, 38 insertions(+), 12 deletions(-) diff --git a/Rocket.Chat/External/RCEmojiKit/Views/EmojiPicker/EmojiPicker.swift b/Rocket.Chat/External/RCEmojiKit/Views/EmojiPicker/EmojiPicker.swift index c3b8f73a7b..a6e9a3948a 100644 --- a/Rocket.Chat/External/RCEmojiKit/Views/EmojiPicker/EmojiPicker.swift +++ b/Rocket.Chat/External/RCEmojiKit/Views/EmojiPicker/EmojiPicker.swift @@ -129,8 +129,12 @@ final class EmojiPicker: UIView, RCEmojiKitLocalizable { currentSkinToneIndex += 1 currentSkinToneIndex = currentSkinToneIndex % skinTones.count skinToneButton.backgroundColor = currentSkinTone.color - skinToneButton.accessibilityHint = currentSkinTone.name emojisCollectionView.reloadData() + + if let currentSkinToneName = currentSkinTone.name { + skinToneButton.accessibilityLabel = + localized("skinTone.label") + localized("currentSkinTone.label") + "\(currentSkinToneName))" + } } var emojiPicked: ((String) -> Void)? diff --git a/Rocket.Chat/External/RCEmojiKit/cs.lproj/RCEmojiKit.strings b/Rocket.Chat/External/RCEmojiKit/cs.lproj/RCEmojiKit.strings index 12bce0f830..38d9543224 100644 --- a/Rocket.Chat/External/RCEmojiKit/cs.lproj/RCEmojiKit.strings +++ b/Rocket.Chat/External/RCEmojiKit/cs.lproj/RCEmojiKit.strings @@ -24,4 +24,5 @@ // Accessibility -"skinTone.label" = "Change skintone"; //TODO +"skinTone.label" = "Change skintone."; // TODO +"currentSkinTone.label" = "Current skintone,"; // TODO diff --git a/Rocket.Chat/External/RCEmojiKit/de.lproj/RCEmojiKit.strings b/Rocket.Chat/External/RCEmojiKit/de.lproj/RCEmojiKit.strings index 11134895ad..2814a47780 100644 --- a/Rocket.Chat/External/RCEmojiKit/de.lproj/RCEmojiKit.strings +++ b/Rocket.Chat/External/RCEmojiKit/de.lproj/RCEmojiKit.strings @@ -24,4 +24,5 @@ // Accessibility -"skinTone.label" = "Change skintone"; //TODO +"skinTone.label" = "Change skintone."; // TODO +"currentSkinTone.label" = "Current skintone,"; // TODO diff --git a/Rocket.Chat/External/RCEmojiKit/el.lproj/RCEmojiKit.strings b/Rocket.Chat/External/RCEmojiKit/el.lproj/RCEmojiKit.strings index d44688eef3..b3e5fc7e9b 100644 --- a/Rocket.Chat/External/RCEmojiKit/el.lproj/RCEmojiKit.strings +++ b/Rocket.Chat/External/RCEmojiKit/el.lproj/RCEmojiKit.strings @@ -24,4 +24,5 @@ // Accessibility -"skinTone.label" = "Change skintone"; //TODO +"skinTone.label" = "Change skintone."; // TODO +"currentSkinTone.label" = "Current skintone,"; // TODO diff --git a/Rocket.Chat/External/RCEmojiKit/en.lproj/RCEmojiKit.strings b/Rocket.Chat/External/RCEmojiKit/en.lproj/RCEmojiKit.strings index fbddfc29be..ebcf362630 100644 --- a/Rocket.Chat/External/RCEmojiKit/en.lproj/RCEmojiKit.strings +++ b/Rocket.Chat/External/RCEmojiKit/en.lproj/RCEmojiKit.strings @@ -24,4 +24,5 @@ // Accessibility -"skinTone.label" = "Change skintone"; +"skinTone.label" = "Change skintone."; +"currentSkinTone.label" = "Current skintone,"; diff --git a/Rocket.Chat/External/RCEmojiKit/es.lproj/RCEmojiKit.strings b/Rocket.Chat/External/RCEmojiKit/es.lproj/RCEmojiKit.strings index 64bac8f680..9b3bb79b5f 100644 --- a/Rocket.Chat/External/RCEmojiKit/es.lproj/RCEmojiKit.strings +++ b/Rocket.Chat/External/RCEmojiKit/es.lproj/RCEmojiKit.strings @@ -24,4 +24,5 @@ // Accessibility -"skinTone.label" = "Change skintone"; //TODO +"skinTone.label" = "Change skintone."; // TODO +"currentSkinTone.label" = "Current skintone,"; // TODO diff --git a/Rocket.Chat/External/RCEmojiKit/fr.lproj/RCEmojiKit.strings b/Rocket.Chat/External/RCEmojiKit/fr.lproj/RCEmojiKit.strings index 6825be2ac0..14f2cd12c2 100644 --- a/Rocket.Chat/External/RCEmojiKit/fr.lproj/RCEmojiKit.strings +++ b/Rocket.Chat/External/RCEmojiKit/fr.lproj/RCEmojiKit.strings @@ -21,3 +21,9 @@ "categories.flags" = "FLAGS"; //TODO "reactorlist.title" = "Reactions"; //TODO + +// Accessibility + +"skinTone.label" = "Change skintone."; // TODO +"currentSkinTone.label" = "Current skintone,"; // TODO + diff --git a/Rocket.Chat/External/RCEmojiKit/it.lproj/RCEmojiKit.strings b/Rocket.Chat/External/RCEmojiKit/it.lproj/RCEmojiKit.strings index 9e2b5c08f8..3917cf8c7d 100644 --- a/Rocket.Chat/External/RCEmojiKit/it.lproj/RCEmojiKit.strings +++ b/Rocket.Chat/External/RCEmojiKit/it.lproj/RCEmojiKit.strings @@ -24,4 +24,5 @@ // Accessibility -"skinTone.label" = "Change skintone"; //TODO +"skinTone.label" = "Change skintone."; // TODO +"currentSkinTone.label" = "Current skintone,"; // TODO diff --git a/Rocket.Chat/External/RCEmojiKit/ja.lproj/RCEmojiKit.strings b/Rocket.Chat/External/RCEmojiKit/ja.lproj/RCEmojiKit.strings index 64bac8f680..9b3bb79b5f 100644 --- a/Rocket.Chat/External/RCEmojiKit/ja.lproj/RCEmojiKit.strings +++ b/Rocket.Chat/External/RCEmojiKit/ja.lproj/RCEmojiKit.strings @@ -24,4 +24,5 @@ // Accessibility -"skinTone.label" = "Change skintone"; //TODO +"skinTone.label" = "Change skintone."; // TODO +"currentSkinTone.label" = "Current skintone,"; // TODO diff --git a/Rocket.Chat/External/RCEmojiKit/pl.lproj/RCEmojiKit.strings b/Rocket.Chat/External/RCEmojiKit/pl.lproj/RCEmojiKit.strings index 94afacd5b6..7b58f44c06 100644 --- a/Rocket.Chat/External/RCEmojiKit/pl.lproj/RCEmojiKit.strings +++ b/Rocket.Chat/External/RCEmojiKit/pl.lproj/RCEmojiKit.strings @@ -24,4 +24,5 @@ // Accessibility -"skinTone.label" = "Change skintone"; //TODO +"skinTone.label" = "Change skintone."; // TODO +"currentSkinTone.label" = "Current skintone,"; // TODO diff --git a/Rocket.Chat/External/RCEmojiKit/pt-BR.lproj/RCEmojiKit.strings b/Rocket.Chat/External/RCEmojiKit/pt-BR.lproj/RCEmojiKit.strings index e29335ad0b..fccfe0a387 100644 --- a/Rocket.Chat/External/RCEmojiKit/pt-BR.lproj/RCEmojiKit.strings +++ b/Rocket.Chat/External/RCEmojiKit/pt-BR.lproj/RCEmojiKit.strings @@ -24,4 +24,5 @@ // Accessibility -"skinTone.label" = "Change skintone"; //TODO +"skinTone.label" = "Change skintone."; // TODO +"currentSkinTone.label" = "Current skintone,"; // TODO diff --git a/Rocket.Chat/External/RCEmojiKit/pt-PT.lproj/RCEmojiKit.strings b/Rocket.Chat/External/RCEmojiKit/pt-PT.lproj/RCEmojiKit.strings index ee2e969519..fccfe0a387 100644 --- a/Rocket.Chat/External/RCEmojiKit/pt-PT.lproj/RCEmojiKit.strings +++ b/Rocket.Chat/External/RCEmojiKit/pt-PT.lproj/RCEmojiKit.strings @@ -21,3 +21,8 @@ "categories.flags" = "BANDEIRAS"; "reactorlist.title" = "Reações"; + +// Accessibility + +"skinTone.label" = "Change skintone."; // TODO +"currentSkinTone.label" = "Current skintone,"; // TODO diff --git a/Rocket.Chat/External/RCEmojiKit/zh-Hans.lproj/RCEmojiKit.strings b/Rocket.Chat/External/RCEmojiKit/zh-Hans.lproj/RCEmojiKit.strings index 64bac8f680..9b3bb79b5f 100644 --- a/Rocket.Chat/External/RCEmojiKit/zh-Hans.lproj/RCEmojiKit.strings +++ b/Rocket.Chat/External/RCEmojiKit/zh-Hans.lproj/RCEmojiKit.strings @@ -24,4 +24,5 @@ // Accessibility -"skinTone.label" = "Change skintone"; //TODO +"skinTone.label" = "Change skintone."; // TODO +"currentSkinTone.label" = "Current skintone,"; // TODO diff --git a/Rocket.Chat/External/RCEmojiKit/zh-Hant.lproj/RCEmojiKit.strings b/Rocket.Chat/External/RCEmojiKit/zh-Hant.lproj/RCEmojiKit.strings index 64bac8f680..9b3bb79b5f 100644 --- a/Rocket.Chat/External/RCEmojiKit/zh-Hant.lproj/RCEmojiKit.strings +++ b/Rocket.Chat/External/RCEmojiKit/zh-Hant.lproj/RCEmojiKit.strings @@ -24,4 +24,5 @@ // Accessibility -"skinTone.label" = "Change skintone"; //TODO +"skinTone.label" = "Change skintone."; // TODO +"currentSkinTone.label" = "Current skintone,"; // TODO From 3607d2ba7646904607ddb21d81ee856e34986ae5 Mon Sep 17 00:00:00 2001 From: Rudrank Date: Mon, 12 Aug 2019 04:01:25 +0530 Subject: [PATCH 3/5] emojiLabel accessibility header --- .../External/RCEmojiKit/Views/EmojiPicker/EmojiPicker.swift | 1 + Rocket.Chat/External/RCEmojiKit/Views/EmojiView.xib | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/Rocket.Chat/External/RCEmojiKit/Views/EmojiPicker/EmojiPicker.swift b/Rocket.Chat/External/RCEmojiKit/Views/EmojiPicker/EmojiPicker.swift index a6e9a3948a..b8633b91fc 100644 --- a/Rocket.Chat/External/RCEmojiKit/Views/EmojiPicker/EmojiPicker.swift +++ b/Rocket.Chat/External/RCEmojiKit/Views/EmojiPicker/EmojiPicker.swift @@ -223,6 +223,7 @@ extension EmojiPicker: UICollectionViewDataSource { ) as? EmojiPickerSectionHeaderView else { return UICollectionReusableView() } headerView.textLabel.text = localized("categories.\(currentCategories[indexPath.section].name)") + headerView.textLabel.accessibilityTraits = .header return headerView } diff --git a/Rocket.Chat/External/RCEmojiKit/Views/EmojiView.xib b/Rocket.Chat/External/RCEmojiKit/Views/EmojiView.xib index a131891aca..fd15b647e3 100644 --- a/Rocket.Chat/External/RCEmojiKit/Views/EmojiView.xib +++ b/Rocket.Chat/External/RCEmojiKit/Views/EmojiView.xib @@ -25,6 +25,10 @@ + + + +