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

Side by Side Diff: third_party/polymer/v0_8/components-chromium/iron-a11y-announcer/iron-a11y-announcer.html

Issue 1162563004: Upgrade to 1.0 and switch clients to dom-repeat where needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a layout import and remove the gzipped webanimation in reproduce.sh Created 5 years, 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!--
2 @license
3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
4 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt
7 Code distributed by Google as part of the polymer project is also
8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt
9 --><html><head><link rel="import" href="../polymer/polymer.html">
10
11 <!--
12 `iron-a11y-announcer` is a singleton element that is intended to add a11y
13 to features that require on-demand announcement from screen readers. In
14 order to make use of the announcer, it is best to request its availability
15 in the announcing element.
16
17 Example:
18
19 Polymer({
20
21 is: 'x-chatty',
22
23 attached: function() {
24 // This will create the singlton element if it has not
25 // been created yet:
26 Polymer.IronA11yAnnouncer.requestAvailability();
27 }
28 });
29
30 After the `iron-a11y-announcer` has been made available, elements can
31 make announces by firing bubbling `iron-announce` events.
32
33 Example:
34
35 this.fire('iron-announce', {
36 text: 'This is an announcement!'
37 }, { bubbles: true });
38
39 Note: announcements are only audible if you have a screen reader enabled.
40
41 @group Iron Elements
42 @demo demo/index.html
43 -->
44
45 </head><body><dom-module id="iron-a11y-announcer">
46 <style>
47 :host {
48 display: inline-block;
49 position: fixed;
50 clip: rect(0px,0px,0px,0px);
51 }
52 </style>
53
54 <template>
55 <span aria-live$="[[mode]]">[[_text]]</span>
56 </template>
57
58 </dom-module>
59 <script src="iron-a11y-announcer-extracted.js"></script></body></html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698