Commit bfbff044 authored by Javier Ernesto Flores Robles's avatar Javier Ernesto Flores Robles Committed by Commit Bot

[iOS][Alert] Sets view as an accessibillity modal

This makes Voice Over not read the siblings views of the alert when
presented. That is the content behind the chrome and the alert.
Everything outside or above the alert view will be read.

Bug: 959764, 951300
Change-Id: Idb932e1fcc251899bccbb7b834e022432c740973
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1611607
Auto-Submit: Javier Ernesto Flores Robles <javierrobles@chromium.org>
Commit-Queue: Kurt Horimoto <kkhorimoto@chromium.org>
Reviewed-by: default avatarKurt Horimoto <kkhorimoto@chromium.org>
Cr-Commit-Position: refs/heads/master@{#659487}
parent cf46a8ac
......@@ -112,6 +112,7 @@ constexpr int kTextfieldBackgroundColor = 0xf7f7f7;
[super loadView];
self.view.backgroundColor =
[[UIColor blackColor] colorWithAlphaComponent:kBackgroundAlpha];
self.view.accessibilityViewIsModal = YES;
self.tapRecognizer = [[UITapGestureRecognizer alloc]
initWithTarget:self
......
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