Commit eaeb5c6f authored by dbeam's avatar dbeam Committed by Commit bot

MD Settings: use the subLabel of <settings-toggle-button>s for the aria

description when the <paper-toggle-button> is focused

R=hcarmona@chromium.org
BUG=none
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Review-Url: https://codereview.chromium.org/2743063004
Cr-Commit-Position: refs/heads/master@{#456254}
parent 8290ccac
......@@ -39,7 +39,7 @@
actionable$="[[!controlDisabled_(disabled, pref.*)]]"
hidden="[[!label]]">
<div id="label" class="label">[[label]]</div>
<div class="secondary label">[[subLabel]]</div>
<div id="subLabel" class="secondary label">[[subLabel]]</div>
</div>
<content select=".more-actions"></content>
<template is="dom-if" if="[[hasPrefPolicyIndicator(pref.*)]]">
......@@ -48,6 +48,7 @@
</template>
<paper-toggle-button id="control" checked="{{checked}}"
on-change="notifyChangedByUserInteraction" aria-labelledby="label"
aria-describedby="subLabel"
disabled="[[controlDisabled_(disabled, pref)]]">
</paper-toggle-button>
</div>
......
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