Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
fix(material-list): Add semantics
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcy Sutton committed Sep 4, 2014
1 parent 54c6043 commit 6e48cd3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/base/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ var Constant = {
ROLE : {
BUTTON : 'button',
CHECKBOX : 'checkbox',
LIST : 'list',
LIST_ITEM : 'listitem',
RADIO : 'radio',
RADIO_GROUP : 'radiogroup',
TAB_LIST : 'tablist',
Expand Down
6 changes: 6 additions & 0 deletions src/components/list/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ function materialListDirective() {
return {
restrict: 'E',
link: function($scope, $element, $attr) {
$element.attr({
'role' : Constant.ARIA.ROLE.LIST
});
}
};
}
Expand Down Expand Up @@ -75,6 +78,9 @@ function materialItemDirective() {
return {
restrict: 'E',
link: function($scope, $element, $attr) {
$element.attr({
'role' : Constant.ARIA.ROLE.LIST_ITEM
});
}
};
}

0 comments on commit 6e48cd3

Please sign in to comment.