{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/jetpack/issues/8309","repository_url":"https://api.github.com/repos/Automattic/jetpack","labels_url":"https://api.github.com/repos/Automattic/jetpack/issues/8309/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/jetpack/issues/8309/comments","events_url":"https://api.github.com/repos/Automattic/jetpack/issues/8309/events","html_url":"https://github.com/Automattic/jetpack/issues/8309","id":279438843,"number":8309,"title":"Holiday Snow: Improve accessibility","user":{"login":"pento","id":352291,"avatar_url":"https://avatars3.githubusercontent.com/u/352291?v=4","gravatar_id":"","url":"https://api.github.com/users/pento","html_url":"https://github.com/pento","followers_url":"https://api.github.com/users/pento/followers","following_url":"https://api.github.com/users/pento/following{/other_user}","gists_url":"https://api.github.com/users/pento/gists{/gist_id}","starred_url":"https://api.github.com/users/pento/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pento/subscriptions","organizations_url":"https://api.github.com/users/pento/orgs","repos_url":"https://api.github.com/users/pento/repos","events_url":"https://api.github.com/users/pento/events{/privacy}","received_events_url":"https://api.github.com/users/pento/received_events","type":"User","site_admin":false},"labels":[{"id":122442343,"url":"https://api.github.com/repos/Automattic/jetpack/labels/Accessibility","name":"Accessibility","color":"d4c5f9","default":false},{"id":75810644,"url":"https://api.github.com/repos/Automattic/jetpack/labels/Theme%20Tools","name":"Theme Tools","color":"006b75","default":false},{"id":470168891,"url":"https://api.github.com/repos/Automattic/jetpack/labels/[Pri]%20Normal","name":"[Pri] Normal","color":"fad8c7","default":false},{"id":70896532,"url":"https://api.github.com/repos/Automattic/jetpack/labels/[Type]%20Bug","name":"[Type] Bug","color":"fc2929","default":false},{"id":536994544,"url":"https://api.github.com/repos/Automattic/jetpack/labels/[Type]%20Good%20For%20Community","name":"[Type] Good For Community","color":"c5def5","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-05T16:24:12Z","updated_at":"2018-03-08T21:42:40Z","closed_at":"2018-03-08T21:42:17Z","author_association":"MEMBER","body":"There are many arguments about the holiday snow script, see #1349. Instead of getting into the remove/global disable/performance/etc arguments, here are some things we can do now.\r\n\r\nA useful step for screen readers would be to add `aria-hidden=\"true\"` and `role=\"presentation\"` attributes to the [SnowFlake](https://github.com/Automattic/jetpack/blob/master/modules/holiday-snow/snowstorm.js#L243), so that the elements aren't added to the screen reader DOM.\r\n\r\nAnother useful step is to disable it entirely with the `prefers-reduced-motion` [media query](https://css-tricks.com/introduction-reduced-motion-media-query/). Thanks to the magic of `matchMedia()`, the snow script can bail early if this is true: `window.matchMedia( '(prefers-reduced-motion: reduce)' ).matches`.\r\n\r\nThis media query currently only works in Safari 10.1 (MacOS and iOS), though it is in the [CSS draft process](https://drafts.csswg.org/mediaqueries-5/#prefers-reduced-motion), so will likely be available in all browsers in the future."},"comment":{"url":"https://api.github.com/repos/Automattic/jetpack/issues/comments/371634286","html_url":"https://github.com/Automattic/jetpack/issues/8309#issuecomment-371634286","issue_url":"https://api.github.com/repos/Automattic/jetpack/issues/8309","id":371634286,"user":{"login":"gravityrail","id":51896,"avatar_url":"https://avatars0.githubusercontent.com/u/51896?v=4","gravatar_id":"","url":"https://api.github.com/users/gravityrail","html_url":"https://github.com/gravityrail","followers_url":"https://api.github.com/users/gravityrail/followers","following_url":"https://api.github.com/users/gravityrail/following{/other_user}","gists_url":"https://api.github.com/users/gravityrail/gists{/gist_id}","starred_url":"https://api.github.com/users/gravityrail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gravityrail/subscriptions","organizations_url":"https://api.github.com/users/gravityrail/orgs","repos_url":"https://api.github.com/users/gravityrail/repos","events_url":"https://api.github.com/users/gravityrail/events{/privacy}","received_events_url":"https://api.github.com/users/gravityrail/received_events","type":"User","site_admin":false},"created_at":"2018-03-08T21:42:40Z","updated_at":"2018-03-08T21:42:40Z","author_association":"CONTRIBUTOR","body":"Closed because feature is removed in Jetpack 6.0."}}
{"actor":{"display_login":"gravityrail"}}