{"action":"created","issue":{"url":"https://api.github.com/repos/schne324/live-region/issues/3","repository_url":"https://api.github.com/repos/schne324/live-region","labels_url":"https://api.github.com/repos/schne324/live-region/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/schne324/live-region/issues/3/comments","events_url":"https://api.github.com/repos/schne324/live-region/issues/3/events","html_url":"https://github.com/schne324/live-region/issues/3","id":305760717,"number":3,"title":"option to set previous messages to display none to prevent repeating","user":{"login":"souporserious","id":2762082,"avatar_url":"https://avatars1.githubusercontent.com/u/2762082?v=4","gravatar_id":"","url":"https://api.github.com/users/souporserious","html_url":"https://github.com/souporserious","followers_url":"https://api.github.com/users/souporserious/followers","following_url":"https://api.github.com/users/souporserious/following{/other_user}","gists_url":"https://api.github.com/users/souporserious/gists{/gist_id}","starred_url":"https://api.github.com/users/souporserious/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/souporserious/subscriptions","organizations_url":"https://api.github.com/users/souporserious/orgs","repos_url":"https://api.github.com/users/souporserious/repos","events_url":"https://api.github.com/users/souporserious/events{/privacy}","received_events_url":"https://api.github.com/users/souporserious/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-16T00:07:18Z","updated_at":"2018-03-16T00:43:19Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I came across an issue with `announce` having the possibility of getting called multiple times which results in the screen reader repeating previous messages. I tried setting `aria-atomic` to `false`, but then if the same message comes through it won't be announced when I'd like it to be announced.\r\n\r\nIn another library that implements something similar with live regions [they are setting old messages to display none](https://github.com/paypal/downshift/blob/master/src/set-a11y-status.js#L29) so previous messages won't be announced which seems to work great. Is this something that can be added as an option to this library? I'm guessing we could do something similar and check if the same message comes through and set it to display none. I would love to hear your thoughts 🙂 I can start a PR, just let me know."},"comment":{"url":"https://api.github.com/repos/schne324/live-region/issues/comments/373567456","html_url":"https://github.com/schne324/live-region/issues/3#issuecomment-373567456","issue_url":"https://api.github.com/repos/schne324/live-region/issues/3","id":373567456,"user":{"login":"schne324","id":3180185,"avatar_url":"https://avatars1.githubusercontent.com/u/3180185?v=4","gravatar_id":"","url":"https://api.github.com/users/schne324","html_url":"https://github.com/schne324","followers_url":"https://api.github.com/users/schne324/followers","following_url":"https://api.github.com/users/schne324/following{/other_user}","gists_url":"https://api.github.com/users/schne324/gists{/gist_id}","starred_url":"https://api.github.com/users/schne324/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schne324/subscriptions","organizations_url":"https://api.github.com/users/schne324/orgs","repos_url":"https://api.github.com/users/schne324/repos","events_url":"https://api.github.com/users/schne324/events{/privacy}","received_events_url":"https://api.github.com/users/schne324/received_events","type":"User","site_admin":false},"created_at":"2018-03-16T00:43:19Z","updated_at":"2018-03-16T00:43:19Z","author_association":"OWNER","body":"IMO excessive calls to `announce` is not the responsibility of this module and should be addressed on the implementers end. In addition, adding `display: none` to elements within a live region seems like it would yield unpredictable results with screen readers (some may suppress the announcement but some may not)."}}
{"actor":{"display_login":"schne324"}}