Commit f9d3cf82 authored by Aga Wronska's avatar Aga Wronska Committed by Commit Bot

Add a11y alert when incorrect parent access code is entered

Change-Id: Ia92d28d7287bd14c5da2d706b266556b4b3c0de1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1793768Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
Commit-Queue: Aga Wronska <agawronska@chromium.org>
Cr-Commit-Position: refs/heads/master@{#695183}
parent b48cdedb
......@@ -842,6 +842,7 @@ void ParentAccessView::UpdateState(State state) {
title_label_->SetEnabledColor(kErrorColor);
title_label_->SetText(
l10n_util::GetStringUTF16(IDS_ASH_LOGIN_PARENT_ACCESS_TITLE_ERROR));
title_label_->NotifyAccessibilityEvent(ax::mojom::Event::kAlert, true);
return;
}
}
......
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