[go: up one dir, main page]

[ios] Add header a11y trait to module title

(cherry picked from commit a7fe344cf1634ebfd374214f45d45fe994707bc2)

Fixed: 1342715
Change-Id: I5fdf681ef4e49f31c3e2b7f173b1fe679827f7be
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3749791
Commit-Queue: Chris Lu <thegreenfrog@chromium.org>
Reviewed-by: Sebastien Seguin-Gagnon <sebsg@chromium.org>
Cr-Original-Commit-Position: refs/heads/main@{#1021900}
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3755009
Commit-Queue: Sebastien Seguin-Gagnon <sebsg@chromium.org>
Auto-Submit: Chris Lu <thegreenfrog@chromium.org>
Cr-Commit-Position: refs/branch-heads/5112@{#778}
Cr-Branched-From: b13d3fe7b3c47a56354ef54b221008afa754412e-refs/heads/main@{#1012729}
diff --git a/ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_module_container.mm b/ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_module_container.mm
index 5b19706..92187e5 100644
--- a/ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_module_container.mm
+++ b/ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_module_container.mm
@@ -86,6 +86,7 @@
       self.title.font =
           [UIFont preferredFontForTextStyle:UIFontTextStyleFootnote];
       self.title.textColor = [UIColor colorNamed:kTextSecondaryColor];
+      self.title.accessibilityTraits |= UIAccessibilityTraitHeader;
       self.title.translatesAutoresizingMaskIntoConstraints = NO;
       [self addSubview:self.title];
       [NSLayoutConstraint activateConstraints:@[