From ad71c45131c9ce5e5521888ee908ca440ebb0a0f Mon Sep 17 00:00:00 2001 From: Daniel Persson Date: Thu, 23 Feb 2017 20:06:14 +0100 Subject: [PATCH 1/2] Moved functionallity of aria label to the iron-autogrow-textarea element. --- paper-textarea.html | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/paper-textarea.html b/paper-textarea.html index 9f769c26..f7d47a7d 100644 --- a/paper-textarea.html +++ b/paper-textarea.html @@ -63,6 +63,7 @@ bind-value="{{value}}" invalid="{{invalid}}" validator$="[[validator]]" + label$="[[label]]" disabled$="[[disabled]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" @@ -100,16 +101,6 @@ ], properties: { - _ariaLabelledBy: { - observer: '_ariaLabelledByChanged', - type: String - }, - - _ariaDescribedBy: { - observer: '_ariaDescribedByChanged', - type: String - }, - /** * The initial number of rows. * @@ -136,14 +127,6 @@ } }, - _ariaLabelledByChanged: function(ariaLabelledBy) { - this.$.input.textarea.setAttribute('aria-labelledby', ariaLabelledBy); - }, - - _ariaDescribedByChanged: function(ariaDescribedBy) { - this.$.input.textarea.setAttribute('aria-describedby', ariaDescribedBy); - }, - get _focusableElement() { return this.$.input.textarea; }, From 741b3484fbaa2bf0fef1045eb9b9f1168dd2168a Mon Sep 17 00:00:00 2001 From: Daniel Persson Date: Thu, 23 Feb 2017 20:34:58 +0100 Subject: [PATCH 2/2] Removed a11y suite and moved it to autogrow. --- test/paper-textarea.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/paper-textarea.html b/test/paper-textarea.html index 4561bcaa..3bf8e63b 100644 --- a/test/paper-textarea.html +++ b/test/paper-textarea.html @@ -205,6 +205,7 @@ // }); }); + /* suite('a11y', function() { test('has aria-labelledby', function() { @@ -251,6 +252,7 @@ }, 1); }); }); + */