Commit d22bdda1 authored by Gavin Williams's avatar Gavin Williams Committed by Commit Bot

a11y: Refer to subpage arrows as subpage buttons

For browser settings add the "Subpage button" role description to
<cr-link-row>'s to clarify the button's action to the user.

Fixed: 1012105
Change-Id: Ic5836c656adf119ea3da0ae3d1319ee7e2cafe8f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2485036Reviewed-by: default avatarKyle Horimoto <khorimoto@chromium.org>
Commit-Queue: Gavin Williams <gavinwill@chromium.org>
Cr-Commit-Position: refs/heads/master@{#818560}
parent 9bf6c500
...@@ -406,6 +406,9 @@ ...@@ -406,6 +406,9 @@
<message name="IDS_EXTENSIONS_TYPE_A_SHORTCUT" desc="The prompt to the user to enter a keyboard shortcut in order to assign it to an extension."> <message name="IDS_EXTENSIONS_TYPE_A_SHORTCUT" desc="The prompt to the user to enter a keyboard shortcut in order to assign it to an extension.">
Type a shortcut Type a shortcut
</message> </message>
<message name="IDS_EXTENSIONS_SUBPAGE_BUTTON" is_accessibility_with_no_ui="true" desc="Accessibility description for a button navigating the user from an extension's settings page to its settings subpage.">
Subpage button
</message>
<if expr="is_macosx"> <if expr="is_macosx">
<message name="IDS_EXTENSIONS_INCLUDE_START_MODIFIER" desc="Error message explaining that shortcuts must start with either the Control, Alt, or Command key."> <message name="IDS_EXTENSIONS_INCLUDE_START_MODIFIER" desc="Error message explaining that shortcuts must start with either the Control, Alt, or Command key.">
Include Ctrl, Alt, or ⌘ Include Ctrl, Alt, or ⌘
......
...@@ -377,7 +377,8 @@ ...@@ -377,7 +377,8 @@
external></cr-link-row> external></cr-link-row>
<cr-link-row class="hr" <cr-link-row class="hr"
id="extensionsActivityLogLink" hidden$="[[!showActivityLog]]" id="extensionsActivityLogLink" hidden$="[[!showActivityLog]]"
label="$i18n{viewActivityLog}" on-click="onActivityLogTap_"> label="$i18n{viewActivityLog}" on-click="onActivityLogTap_"
role-description="$i18n{subpageArrowRoleDescription}">
</cr-link-row> </cr-link-row>
<cr-link-row class="hr" hidden="[[!data.manifestHomePageUrl.length]]" <cr-link-row class="hr" hidden="[[!data.manifestHomePageUrl.length]]"
id="extensionWebsite" label="$i18n{extensionWebsite}" id="extensionWebsite" label="$i18n{extensionWebsite}"
......
...@@ -161,6 +161,7 @@ ...@@ -161,6 +161,7 @@
<div id="other-sync-items" class="list-frame"> <div id="other-sync-items" class="list-frame">
<cr-link-row id="sync-advanced-row" <cr-link-row id="sync-advanced-row"
label="$i18n{syncAdvancedPageTitle}" label="$i18n{syncAdvancedPageTitle}"
role-description="$i18n{subpageArrowRoleDescription}"
on-click="onSyncAdvancedClick_"></cr-link-row> on-click="onSyncAdvancedClick_"></cr-link-row>
<cr-link-row class="hr" <cr-link-row class="hr"
......
...@@ -138,7 +138,8 @@ ...@@ -138,7 +138,8 @@
on-settings-boolean-control-change="onNetworkPredictionChange_"> on-settings-boolean-control-change="onNetworkPredictionChange_">
</settings-toggle-button> </settings-toggle-button>
<cr-link-row id="site-data-trigger" class="hr" <cr-link-row id="site-data-trigger" class="hr"
on-click="onSiteDataClick_" label="$i18n{siteSettingsCookieLink}"> on-click="onSiteDataClick_" label="$i18n{siteSettingsCookieLink}"
role-description="$i18n{subpageArrowRoleDescription}">
</cr-link-row> </cr-link-row>
<div id="exceptionHeader" hidden="[[!enableContentSettingsRedesign_]]"> <div id="exceptionHeader" hidden="[[!enableContentSettingsRedesign_]]">
<h2>$i18n{siteSettingsCustomizedBehaviors}</h2> <h2>$i18n{siteSettingsCustomizedBehaviors}</h2>
......
...@@ -19,15 +19,18 @@ ...@@ -19,15 +19,18 @@
<cr-link-row id="cookiesLinkRow" start-icon="settings:cookie" <cr-link-row id="cookiesLinkRow" start-icon="settings:cookie"
class="hr" label="$i18n{cookiePageTitle}" class="hr" label="$i18n{cookiePageTitle}"
sub-label="[[cookieSettingDescription_]]" sub-label="[[cookieSettingDescription_]]"
on-click="onCookiesClick_"></cr-link-row> on-click="onCookiesClick_"
role-description="$i18n{subpageArrowRoleDescription}"></cr-link-row>
<cr-link-row id="securityLinkRow" start-icon="cr:security" <cr-link-row id="securityLinkRow" start-icon="cr:security"
class="hr" label="$i18n{securityPageTitle}" class="hr" label="$i18n{securityPageTitle}"
sub-label="$i18n{securityPageDescription}" sub-label="$i18n{securityPageDescription}"
on-click="onSecurityPageClick_"></cr-link-row> on-click="onSecurityPageClick_"
role-description="$i18n{subpageArrowRoleDescription}"></cr-link-row>
<cr-link-row id="permissionsLinkRow" start-icon="settings:permissions" <cr-link-row id="permissionsLinkRow" start-icon="settings:permissions"
class="hr" label="$i18n{siteSettings}" class="hr" label="$i18n{siteSettings}"
sub-label="$i18n{permissionsPageDescription}" sub-label="$i18n{permissionsPageDescription}"
on-click="onPermissionsPageClick_"></cr-link-row> on-click="onPermissionsPageClick_"
role-description="$i18n{subpageArrowRoleDescription}"></cr-link-row>
</div> </div>
<if expr="use_nss_certs"> <if expr="use_nss_certs">
......
...@@ -160,13 +160,17 @@ ...@@ -160,13 +160,17 @@
class="hr" class="hr"
label="$i18n{securityKeysTitle}" label="$i18n{securityKeysTitle}"
sub-label="$i18n{securityKeysDesc}" sub-label="$i18n{securityKeysDesc}"
on-click="onSecurityKeysClick_"></cr-link-row> on-click="onSecurityKeysClick_"
role-description="$i18n{subpageArrowRoleDescription}"></cr-link-row>
</template> </template>
<if expr="use_nss_certs or is_win or is_macosx"> <if expr="use_nss_certs or is_win or is_macosx">
<cr-link-row id="manageCertificates" <cr-link-row id="manageCertificates"
class="hr" class="hr"
<if expr="not use_nss_certs"> <if expr="not use_nss_certs">
external external
</if>
<if expr="use_nss_certs">
role-description="$i18n{subpageArrowRoleDescription}"
</if> </if>
label="$i18n{manageCertificates}" label="$i18n{manageCertificates}"
sub-label="$i18n{manageCertificatesDescription}" sub-label="$i18n{manageCertificatesDescription}"
......
...@@ -236,6 +236,7 @@ content::WebUIDataSource* CreateMdExtensionsSource(Profile* profile, ...@@ -236,6 +236,7 @@ content::WebUIDataSource* CreateMdExtensionsSource(Profile* profile,
{"shortcutIncludeStartModifier", IDS_EXTENSIONS_INCLUDE_START_MODIFIER}, {"shortcutIncludeStartModifier", IDS_EXTENSIONS_INCLUDE_START_MODIFIER},
{"shortcutTooManyModifiers", IDS_EXTENSIONS_TOO_MANY_MODIFIERS}, {"shortcutTooManyModifiers", IDS_EXTENSIONS_TOO_MANY_MODIFIERS},
{"shortcutNeedCharacter", IDS_EXTENSIONS_NEED_CHARACTER}, {"shortcutNeedCharacter", IDS_EXTENSIONS_NEED_CHARACTER},
{"subpageArrowRoleDescription", IDS_EXTENSIONS_SUBPAGE_BUTTON},
{"toolbarDevMode", IDS_EXTENSIONS_DEVELOPER_MODE}, {"toolbarDevMode", IDS_EXTENSIONS_DEVELOPER_MODE},
{"toolbarLoadUnpacked", IDS_EXTENSIONS_TOOLBAR_LOAD_UNPACKED}, {"toolbarLoadUnpacked", IDS_EXTENSIONS_TOOLBAR_LOAD_UNPACKED},
{"toolbarPack", IDS_EXTENSIONS_TOOLBAR_PACK}, {"toolbarPack", IDS_EXTENSIONS_TOOLBAR_PACK},
......
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