Skip to content

Commit

Permalink
[FEATURE modernized-built-in-components] Support @ariaRole
Browse files Browse the repository at this point in the history
  • Loading branch information
chancancode authored and sly7-7 committed Mar 10, 2021
1 parent 8910d0b commit 5840dd2
Show file tree
Hide file tree
Showing 7 changed files with 124 additions and 36 deletions.
2 changes: 2 additions & 0 deletions packages/@ember/-internals/glimmer/lib/components/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,7 @@ if (EMBER_MODERNIZED_BUILT_IN_COMPONENTS) {
'id',
'class',
['class', 'classNames'],
['role', 'ariaRole'],

// TextSupport
'autocapitalize',
Expand Down Expand Up @@ -704,6 +705,7 @@ if (EMBER_MODERNIZED_BUILT_IN_COMPONENTS) {
'id',
'class',
['class', 'classNames'],
['role', 'ariaRole'],

// TextSupport
'autocapitalize',
Expand Down
1 change: 1 addition & 0 deletions packages/@ember/-internals/glimmer/lib/templates/input.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
class={{this.class}}

{{!-- deprecated attribute bindings --}}
role={{this._ariaRole}}
autocapitalize={{this._autocapitalize}}
autocorrect={{this._autocorrect}}
autofocus={{this._autofocus}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
class={{this.class}}

{{!-- deprecated attribute bindings --}}
role={{this._ariaRole}}
autocapitalize={{this._autocapitalize}}
autocorrect={{this._autocorrect}}
autofocus={{this._autofocus}}
Expand Down

0 comments on commit 5840dd2

Please sign in to comment.