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

Side by Side Diff: third_party/polymer/v1_0/components-chromium/paper-input/paper-textarea-extracted.js

Issue 2745283004: MD WebUI: temporary fix for <paper-textarea> a11y label problems (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « third_party/polymer/v1_0/chromium.patch ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 Polymer({ 1 Polymer({
2 is: 'paper-textarea', 2 is: 'paper-textarea',
3 3
4 behaviors: [ 4 behaviors: [
5 Polymer.PaperInputBehavior, 5 Polymer.PaperInputBehavior,
6 Polymer.IronFormElementBehavior 6 Polymer.IronFormElementBehavior
7 ], 7 ],
8 8
9 properties: { 9 properties: {
10 _ariaLabelledBy: { 10 _ariaLabelledBy: {
(...skipping 25 matching lines...) Expand all
36 * @attribute maxRows 36 * @attribute maxRows
37 * @type number 37 * @type number
38 * @default 0 38 * @default 0
39 */ 39 */
40 maxRows: { 40 maxRows: {
41 type: Number, 41 type: Number,
42 value: 0 42 value: 0
43 } 43 }
44 }, 44 },
45 45
46 _ariaLabelledByChanged: function(ariaLabelledBy) { 46 _ariaLabelledByChanged: function() {
47 this.$.input.textarea.setAttribute('aria-labelledby', ariaLabelledBy); 47 this.$.input.textarea.setAttribute('aria-label', this.label);
48 }, 48 },
49 49
50 _ariaDescribedByChanged: function(ariaDescribedBy) { 50 _ariaDescribedByChanged: function(ariaDescribedBy) {
51 this.$.input.textarea.setAttribute('aria-describedby', ariaDescribedBy); 51 this.$.input.textarea.setAttribute('aria-describedby', ariaDescribedBy);
52 }, 52 },
53 53
54 get _focusableElement() { 54 get _focusableElement() {
55 return this.$.input.textarea; 55 return this.$.input.textarea;
56 }, 56 },
57 }); 57 });
OLDNEW
« no previous file with comments | « third_party/polymer/v1_0/chromium.patch ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698