| Index: third_party/polymer/v1_0/components-chromium/iron-a11y-announcer/iron-a11y-announcer.html
|
| diff --git a/third_party/polymer/v1_0/components-chromium/iron-a11y-announcer/iron-a11y-announcer.html b/third_party/polymer/v1_0/components-chromium/iron-a11y-announcer/iron-a11y-announcer.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8e2c18a06b22d9ee0bc07ff8980f1d1420ba12e9
|
| --- /dev/null
|
| +++ b/third_party/polymer/v1_0/components-chromium/iron-a11y-announcer/iron-a11y-announcer.html
|
| @@ -0,0 +1,59 @@
|
| +<!--
|
| +@license
|
| +Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
| +This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
| +The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
| +The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
| +Code distributed by Google as part of the polymer project is also
|
| +subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
| +--><html><head><link rel="import" href="../polymer/polymer.html">
|
| +
|
| +<!--
|
| +`iron-a11y-announcer` is a singleton element that is intended to add a11y
|
| +to features that require on-demand announcement from screen readers. In
|
| +order to make use of the announcer, it is best to request its availability
|
| +in the announcing element.
|
| +
|
| +Example:
|
| +
|
| + Polymer({
|
| +
|
| + is: 'x-chatty',
|
| +
|
| + attached: function() {
|
| + // This will create the singleton element if it has not
|
| + // been created yet:
|
| + Polymer.IronA11yAnnouncer.requestAvailability();
|
| + }
|
| + });
|
| +
|
| +After the `iron-a11y-announcer` has been made available, elements can
|
| +make announces by firing bubbling `iron-announce` events.
|
| +
|
| +Example:
|
| +
|
| + this.fire('iron-announce', {
|
| + text: 'This is an announcement!'
|
| + }, { bubbles: true });
|
| +
|
| +Note: announcements are only audible if you have a screen reader enabled.
|
| +
|
| +@group Iron Elements
|
| +@demo demo/index.html
|
| +-->
|
| +
|
| +</head><body><dom-module id="iron-a11y-announcer">
|
| + <style>
|
| + :host {
|
| + display: inline-block;
|
| + position: fixed;
|
| + clip: rect(0px,0px,0px,0px);
|
| + }
|
| + </style>
|
| +
|
| + <template>
|
| + <div aria-live$="[[mode]]">[[_text]]</div>
|
| + </template>
|
| +
|
| + </dom-module>
|
| +<script src="iron-a11y-announcer-extracted.js"></script></body></html>
|
|
|