We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24a0ffb commit 0ac0dfeCopy full SHA for 0ac0dfe
components/Dialogs/src/MDCAlertController.m
@@ -308,6 +308,15 @@ - (void)messageDidChange {
308
}
309
self.preferredContentSize =
310
[self.alertView calculatePreferredContentSizeForBounds:CGRectInfinite.size];
311
+
312
+ self.alertView.messageTextView.accessibilityLabel =
313
+ self.messageAccessibilityLabel ?: self.message;
314
315
+ if ([self shouldUseAttributedStringForMessageA11Y]) {
316
+ self.alertView.messageTextView.accessibilityLabel = self.attributedMessage.string;
317
+ } else {
318
+ self.alertView.messageTextView.accessibilityValue = @"";
319
+ }
320
321
322
- (void)setMessageAccessibilityLabel:(nullable NSString *)messageAccessibilityLabel {
0 commit comments