Mahi: Update accessible names for some UI components
Update accessible names for the textfield in the menu card and the learn more link in the panel. Fixed: b:356165820, b:356692319 Change-Id: Icd1767cfa61b4149c4e7a4ad743574feb596f50c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5783627 Reviewed-by: Alex Newcomer <newcomer@chromium.org> Commit-Queue: Andre Le <leandre@chromium.org> Cr-Commit-Position: refs/heads/main@{#1342343}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
b7e514b714
commit
a797dfa100
@ -5384,6 +5384,9 @@ No devices connected.
|
||||
<message name="IDS_ASH_MAHI_RETRY_LINK_CLICK_ACTIVATION_ACCESSIBLE_NAME" desc="Text for the accessible name that announced when the retry link is clicked">
|
||||
Retry link activated
|
||||
</message>
|
||||
<message name="IDS_ASH_MAHI_LEARN_MORE_LINK_ACCESSIBLE_NAME" desc="Text for the accessible name that announced when the learn more button is focused">
|
||||
Learn more link. Redirect to the browser when activated
|
||||
</message>
|
||||
<message name="IDS_ASH_MAHI_LEARN_MORE_CLICK_ACTIVATION_ACCESSIBLE_NAME" desc="Text for the accessible name that announced when the learn more button is clicked">
|
||||
Opened learn more link in the browser
|
||||
</message>
|
||||
|
@ -0,0 +1 @@
|
||||
7e04b9d8208601cefd7f221d72c1d37a96804dab
|
@ -718,6 +718,8 @@ MahiPanelView::MahiPanelView(MahiUiController* ui_controller)
|
||||
views::Builder<views::Link>()
|
||||
.SetText(l10n_util::GetStringUTF16(
|
||||
IDS_ASH_MAHI_LEARN_MORE_LINK_LABEL_TEXT))
|
||||
.SetAccessibleName(l10n_util::GetStringUTF16(
|
||||
IDS_ASH_MAHI_LEARN_MORE_LINK_ACCESSIBLE_NAME))
|
||||
.SetCallback(base::BindRepeating(
|
||||
&MahiPanelView::OnLearnMoreLinkClicked,
|
||||
weak_ptr_factory_.GetWeakPtr()))
|
||||
|
@ -395,6 +395,8 @@ std::unique_ptr<views::FlexLayoutView> MahiMenuView::CreateInputContainer() {
|
||||
.SetTextInputType(ui::TEXT_INPUT_TYPE_TEXT)
|
||||
.SetPlaceholderText(
|
||||
l10n_util::GetStringUTF16(IDS_MAHI_MENU_INPUT_TEXTHOLDER))
|
||||
.SetAccessibleName(
|
||||
l10n_util::GetStringUTF16(IDS_MAHI_MENU_INPUT_TEXTHOLDER))
|
||||
.SetProperty(
|
||||
views::kFlexBehaviorKey,
|
||||
views::FlexSpecification(views::FlexSpecification(
|
||||
|
Reference in New Issue
Block a user