{"action":"created","comment":{"url":"https://api.github.com/repos/alphagov/govuk_publishing_components/pulls/comments/178077745","pull_request_review_id":108074919,"id":178077745,"diff_hunk":"@@ -0,0 +1,16 @@\n+name: Success Alert\n+description: Used at the top of the page, to summarise a successful user action.\n+accessibility_criteria: |\n+  - should be focused on page load, to ensure this error is noticed by assistive tech","path":"app/views/govuk_publishing_components/components/docs/success_alert.yml","position":null,"original_position":4,"commit_id":"75478b69e08d92ca8c9324236bceaab0f0fe47bd","original_commit_id":"57615110a0e29d8073c4e525e973206aa08dba48","user":{"login":"fofr","id":319055,"avatar_url":"https://avatars3.githubusercontent.com/u/319055?v=4","gravatar_id":"","url":"https://api.github.com/users/fofr","html_url":"https://github.com/fofr","followers_url":"https://api.github.com/users/fofr/followers","following_url":"https://api.github.com/users/fofr/following{/other_user}","gists_url":"https://api.github.com/users/fofr/gists{/gist_id}","starred_url":"https://api.github.com/users/fofr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fofr/subscriptions","organizations_url":"https://api.github.com/users/fofr/orgs","repos_url":"https://api.github.com/users/fofr/repos","events_url":"https://api.github.com/users/fofr/events{/privacy}","received_events_url":"https://api.github.com/users/fofr/received_events","type":"User","site_admin":false},"body":"Option 1, but without the JS:\r\nhttps://github.com/alphagov/govuk_publishing_components/pull/254/files#r178077033\r\n\r\nDocs should also indicate the autofocus behaviour.","created_at":"2018-03-29T14:40:44Z","updated_at":"2018-03-29T14:40:44Z","html_url":"https://github.com/alphagov/govuk_publishing_components/pull/254#discussion_r178077745","pull_request_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/pulls/254","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/alphagov/govuk_publishing_components/pulls/comments/178077745"},"html":{"href":"https://github.com/alphagov/govuk_publishing_components/pull/254#discussion_r178077745"},"pull_request":{"href":"https://api.github.com/repos/alphagov/govuk_publishing_components/pulls/254"}},"in_reply_to_id":178039961},"pull_request":{"url":"https://api.github.com/repos/alphagov/govuk_publishing_components/pulls/254","id":178011889,"html_url":"https://github.com/alphagov/govuk_publishing_components/pull/254","diff_url":"https://github.com/alphagov/govuk_publishing_components/pull/254.diff","patch_url":"https://github.com/alphagov/govuk_publishing_components/pull/254.patch","issue_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/issues/254","number":254,"state":"open","locked":false,"title":"Component for a success alert","user":{"login":"kevindew","id":282717,"avatar_url":"https://avatars0.githubusercontent.com/u/282717?v=4","gravatar_id":"","url":"https://api.github.com/users/kevindew","html_url":"https://github.com/kevindew","followers_url":"https://api.github.com/users/kevindew/followers","following_url":"https://api.github.com/users/kevindew/following{/other_user}","gists_url":"https://api.github.com/users/kevindew/gists{/gist_id}","starred_url":"https://api.github.com/users/kevindew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevindew/subscriptions","organizations_url":"https://api.github.com/users/kevindew/orgs","repos_url":"https://api.github.com/users/kevindew/repos","events_url":"https://api.github.com/users/kevindew/events{/privacy}","received_events_url":"https://api.github.com/users/kevindew/received_events","type":"User","site_admin":false},"body":"Trello: https://trello.com/c/QJ4DK2YQ/740-add-flashes-to-subscription-management\r\n\r\nThis adds in a component that can be used to report back to users when a\r\nsuccessful situation has occured - such as them submitting a form and we\r\ninforming that this was successful.\r\n\r\n@fofr here's a draft of the component. I wasn't too sure if I wanted to specify a data-module attribute or tabindex. I'm assuming I don't need the aria labelled by since it's only a single paragraph.","created_at":"2018-03-28T11:44:27Z","updated_at":"2018-03-29T14:40:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"99b3df104de0669daf738de1f7210d13bcedaa36","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/pulls/254/commits","review_comments_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/pulls/254/comments","review_comment_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/issues/254/comments","statuses_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/statuses/75478b69e08d92ca8c9324236bceaab0f0fe47bd","head":{"label":"alphagov:success-alert","ref":"success-alert","sha":"75478b69e08d92ca8c9324236bceaab0f0fe47bd","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars0.githubusercontent.com/u/596977?v=4","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":97020666,"name":"govuk_publishing_components","full_name":"alphagov/govuk_publishing_components","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars0.githubusercontent.com/u/596977?v=4","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/govuk_publishing_components","description":"A gem to document and distribute components in GOV.UK Publishing frontend applications","fork":false,"url":"https://api.github.com/repos/alphagov/govuk_publishing_components","forks_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/forks","keys_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/teams","hooks_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/hooks","issue_events_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/events","assignees_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/tags","blobs_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/languages","stargazers_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/stargazers","contributors_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/contributors","subscribers_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/subscribers","subscription_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/subscription","commits_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/merges","archive_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/downloads","issues_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/deployments","created_at":"2017-07-12T14:59:27Z","updated_at":"2018-03-29T14:21:51Z","pushed_at":"2018-03-29T14:21:52Z","git_url":"git://github.com/alphagov/govuk_publishing_components.git","ssh_url":"git@github.com:alphagov/govuk_publishing_components.git","clone_url":"https://github.com/alphagov/govuk_publishing_components.git","svn_url":"https://github.com/alphagov/govuk_publishing_components","homepage":"https://govuk-publishing-components.herokuapp.com/component-guide","size":1303,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":18,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":18,"watchers":2,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"6341cfe9c966dfda66f773fe0cdaed0703702e5c","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars0.githubusercontent.com/u/596977?v=4","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":97020666,"name":"govuk_publishing_components","full_name":"alphagov/govuk_publishing_components","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars0.githubusercontent.com/u/596977?v=4","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/govuk_publishing_components","description":"A gem to document and distribute components in GOV.UK Publishing frontend applications","fork":false,"url":"https://api.github.com/repos/alphagov/govuk_publishing_components","forks_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/forks","keys_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/teams","hooks_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/hooks","issue_events_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/events","assignees_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/tags","blobs_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/languages","stargazers_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/stargazers","contributors_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/contributors","subscribers_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/subscribers","subscription_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/subscription","commits_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/merges","archive_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/downloads","issues_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/govuk_publishing_components/deployments","created_at":"2017-07-12T14:59:27Z","updated_at":"2018-03-29T14:21:51Z","pushed_at":"2018-03-29T14:21:52Z","git_url":"git://github.com/alphagov/govuk_publishing_components.git","ssh_url":"git@github.com:alphagov/govuk_publishing_components.git","clone_url":"https://github.com/alphagov/govuk_publishing_components.git","svn_url":"https://github.com/alphagov/govuk_publishing_components","homepage":"https://govuk-publishing-components.herokuapp.com/component-guide","size":1303,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":18,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":18,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/govuk_publishing_components/pulls/254"},"html":{"href":"https://github.com/alphagov/govuk_publishing_components/pull/254"},"issue":{"href":"https://api.github.com/repos/alphagov/govuk_publishing_components/issues/254"},"comments":{"href":"https://api.github.com/repos/alphagov/govuk_publishing_components/issues/254/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/govuk_publishing_components/pulls/254/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/govuk_publishing_components/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/govuk_publishing_components/pulls/254/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/govuk_publishing_components/statuses/75478b69e08d92ca8c9324236bceaab0f0fe47bd"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"fofr"}}