{"action":"created","issue":{"url":"https://api.github.com/repos/cfpb/cfgov-refresh/issues/943","labels_url":"https://api.github.com/repos/cfpb/cfgov-refresh/issues/943/labels{/name}","comments_url":"https://api.github.com/repos/cfpb/cfgov-refresh/issues/943/comments","events_url":"https://api.github.com/repos/cfpb/cfgov-refresh/issues/943/events","html_url":"https://github.com/cfpb/cfgov-refresh/pull/943","id":103734267,"number":943,"title":"Adding ARIA states and config code","user":{"login":"sebworks","id":1696212,"avatar_url":"https://avatars.githubusercontent.com/u/1696212?v=3","gravatar_id":"","url":"https://api.github.com/users/sebworks","html_url":"https://github.com/sebworks","followers_url":"https://api.github.com/users/sebworks/followers","following_url":"https://api.github.com/users/sebworks/following{/other_user}","gists_url":"https://api.github.com/users/sebworks/gists{/gist_id}","starred_url":"https://api.github.com/users/sebworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebworks/subscriptions","organizations_url":"https://api.github.com/users/sebworks/orgs","repos_url":"https://api.github.com/users/sebworks/repos","events_url":"https://api.github.com/users/sebworks/events{/privacy}","received_events_url":"https://api.github.com/users/sebworks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-28T14:59:42Z","updated_at":"2015-08-28T15:25:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls/943","html_url":"https://github.com/cfpb/cfgov-refresh/pull/943","diff_url":"https://github.com/cfpb/cfgov-refresh/pull/943.diff","patch_url":"https://github.com/cfpb/cfgov-refresh/pull/943.patch"},"body":"Adding ARIA states and config code.\r\n\r\n## Changes\r\n - Added `src/static/js/config/aria-states-config.j` to create ARIA states config file with valid elements lookup. \r\n\r\n- Added `src/static/js/modules/util/aria-state.js` to create ARIA states and update dom elements based on object properties. \r\n\r\n## Testing\r\n-  Still working on a Unit test for this PR.\r\n\r\n## Notes\r\n- The basic use cases are as follows : \r\n```\r\nvar state = ariaState.create( 'expanded', element ); \r\n// 'aria-expanded' attribute is now created on the element and set to false.\r\n// state has an `isExpanded` property which is also set to false;\r\n   \r\nstate.isExpanded = true; \r\n//  'aria-expanded' attribute is now set to true on the element.\r\n\r\nvar obj = {'isSmall' : true};\r\n\r\nvar state = ariaState.define( 'checked', element, obj );  \r\n// 'aria-checked' attribute is now created on the element and set to false.\r\n// obj has an `isChecked` property which is also set to false.\r\n  \r\nstate.isExpanded = true;\r\n//  'aria-expanded' attribute is now set to true on the element.\r\n\r\n```\r\n\r\n\r\n## Review\r\n@anselmbradford \r\n@jimmynotjim \r\n@KimberlyMunoz "},"comment":{"url":"https://api.github.com/repos/cfpb/cfgov-refresh/issues/comments/135806000","html_url":"https://github.com/cfpb/cfgov-refresh/pull/943#issuecomment-135806000","issue_url":"https://api.github.com/repos/cfpb/cfgov-refresh/issues/943","id":135806000,"user":{"login":"KimberlyMunoz","id":1860176,"avatar_url":"https://avatars.githubusercontent.com/u/1860176?v=3","gravatar_id":"","url":"https://api.github.com/users/KimberlyMunoz","html_url":"https://github.com/KimberlyMunoz","followers_url":"https://api.github.com/users/KimberlyMunoz/followers","following_url":"https://api.github.com/users/KimberlyMunoz/following{/other_user}","gists_url":"https://api.github.com/users/KimberlyMunoz/gists{/gist_id}","starred_url":"https://api.github.com/users/KimberlyMunoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KimberlyMunoz/subscriptions","organizations_url":"https://api.github.com/users/KimberlyMunoz/orgs","repos_url":"https://api.github.com/users/KimberlyMunoz/repos","events_url":"https://api.github.com/users/KimberlyMunoz/events{/privacy}","received_events_url":"https://api.github.com/users/KimberlyMunoz/received_events","type":"User","site_admin":false},"created_at":"2015-08-28T15:25:46Z","updated_at":"2015-08-28T15:25:46Z","body":"Why not just install it as a dependency with bower?"}}