Commit 6c89e926 authored by sczs's avatar sczs Committed by Commit Bot

[ios] Adds TableViewLinkHeaderFooterCell accessibilityLabel.

Bug: 979673
Change-Id: I82df2334bff60dd2867e336f7f7a89f9163ebd3e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1750044Reviewed-by: default avatarRobbie Gibson <rkgibson@google.com>
Reviewed-by: default avatarGauthier Ambard <gambard@chromium.org>
Commit-Queue: Sergio Collazos <sczs@chromium.org>
Cr-Commit-Position: refs/heads/master@{#686439}
parent 4a923266
...@@ -41,6 +41,7 @@ const CGFloat kVerticalPadding = 8; ...@@ -41,6 +41,7 @@ const CGFloat kVerticalPadding = 8;
[super configureHeaderFooterView:headerFooter withStyler:styler]; [super configureHeaderFooterView:headerFooter withStyler:styler];
headerFooter.linkURL = self.linkURL; headerFooter.linkURL = self.linkURL;
headerFooter.accessibilityTraits |= UIAccessibilityTraitLink;
[headerFooter setText:self.text]; [headerFooter setText:self.text];
} }
...@@ -141,4 +142,10 @@ const CGFloat kVerticalPadding = 8; ...@@ -141,4 +142,10 @@ const CGFloat kVerticalPadding = 8;
return NO; return NO;
} }
#pragma mark - NSObject(Accessibility)
- (NSString*)accessibilityLabel {
return [self.textView.attributedText string];
}
@end @end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment