Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(619)

Unified Diff: chrome/browser/resources/settings/internet_page/network_summary_item.html

Issue 2707033006: MD Settings: Internet: Use custom a11y labels for network toggle buttons (Closed)
Patch Set: Feedback Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/settings/internet_page/network_summary_item.html
diff --git a/chrome/browser/resources/settings/internet_page/network_summary_item.html b/chrome/browser/resources/settings/internet_page/network_summary_item.html
index 85e793951125d1614d6e4f559f7399ffc576d4b7..ee3e90f35c2a224f44d4aa392ec469d59d00167b 100644
--- a/chrome/browser/resources/settings/internet_page/network_summary_item.html
+++ b/chrome/browser/resources/settings/internet_page/network_summary_item.html
@@ -3,6 +3,7 @@
<link rel="import" href="chrome://resources/cr_elements/network/cr_network_list_item.html">
<link rel="import" href="chrome://resources/html/action_link.html">
<link rel="import" href="chrome://resources/html/action_link_css.html">
+<link rel="import" href="chrome://resources/html/i18n_behavior.html">
<link rel="import" href="chrome://resources/html/polymer.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-a11y-keys-behavior/iron-a11y-keys-behavior.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-collapse/iron-collapse.html">
@@ -56,8 +57,7 @@
<div class="settings-box two-line" actionable on-tap="onDetailsTap_">
<div id="details"
no-flex$="[[showSimInfo_(deviceState)]]">
- <cr-network-list-item item="[[activeNetworkState]]" class="flex"
- item-name="{{itemName}}">
+ <cr-network-list-item item="[[activeNetworkState]]" class="flex">
</cr-network-list-item>
<paper-spinner active="[[scanningIsActive_(deviceState, expanded_)]]"
hidden$="[[!scanningIsVisible_(deviceState)]]">
@@ -90,7 +90,7 @@
<template is="dom-if" if="[[enableToggleIsVisible_(deviceState)]]">
<div class="secondary-action">
<paper-toggle-button id="deviceEnabledButton"
- aria-label$="[[itemName]]"
+ aria-label$="[[getToggleA11yString_(deviceState)]]"
checked="[[deviceIsEnabled_(deviceState)]]"
enabled="[[enableToggleIsEnabled_(deviceState)]]"
on-tap="onDeviceEnabledTap_">

Powered by Google App Engine
This is Rietveld 408576698