{"action":"created","issue":{"url":"https://api.github.com/repos/Yoast/yoast-components/issues/560","repository_url":"https://api.github.com/repos/Yoast/yoast-components","labels_url":"https://api.github.com/repos/Yoast/yoast-components/issues/560/labels{/name}","comments_url":"https://api.github.com/repos/Yoast/yoast-components/issues/560/comments","events_url":"https://api.github.com/repos/Yoast/yoast-components/issues/560/events","html_url":"https://github.com/Yoast/yoast-components/issues/560","id":326981662,"node_id":"MDU6SXNzdWUzMjY5ODE2NjI=","number":560,"title":"Snippet editor fields don't scroll into view","user":{"login":"afercia","id":1682452,"node_id":"MDQ6VXNlcjE2ODI0NTI=","avatar_url":"https://avatars1.githubusercontent.com/u/1682452?v=4","gravatar_id":"","url":"https://api.github.com/users/afercia","html_url":"https://github.com/afercia","followers_url":"https://api.github.com/users/afercia/followers","following_url":"https://api.github.com/users/afercia/following{/other_user}","gists_url":"https://api.github.com/users/afercia/gists{/gist_id}","starred_url":"https://api.github.com/users/afercia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afercia/subscriptions","organizations_url":"https://api.github.com/users/afercia/orgs","repos_url":"https://api.github.com/users/afercia/repos","events_url":"https://api.github.com/users/afercia/events{/privacy}","received_events_url":"https://api.github.com/users/afercia/received_events","type":"User","site_admin":false},"labels":[{"id":478983536,"node_id":"MDU6TGFiZWw0Nzg5ODM1MzY=","url":"https://api.github.com/repos/Yoast/yoast-components/labels/snippet%20preview","name":"snippet preview","color":"006b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-28T10:41:42Z","updated_at":"2018-08-06T08:31:09Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"As a native behavior, all browsers bring into view HTML element when they receive focus.\r\n\r\nHowever, this doesn't happen with the draft.js \"fields\" now used in the snippet editor, as they're not native input fields. It's something you won't see normally, as we're used to large screens. However, in some cases it can be very confusing for users.\r\n\r\nTo reproduce:\r\n- scroll the page to make the snippet preview appear and don't scroll further: see screenshot:\r\n\r\n![screen shot 2018-05-28 at 12 36 56](https://user-images.githubusercontent.com/1682452/40610807-16c7a3e0-6274-11e8-8adb-1e97a5a9075f.png)\r\n\r\n- or, open your browser's dev tools just to make the window height smaller, or use the responsive view emulation\r\n\r\n- click on the title in the preview: nothing seem to happen\r\n- click on the description: nothing seem to happen\r\n- click on the URL: the page scrolls and the slug field in the snippet editor comes into view: this is because the slug field is a native input field\r\n\r\nWorth noting browsers scroll in different ways to bring something into view:\r\n- Chrome typically tries to bring the element that receives focus in the middle of the page\r\n- Firefox just makes the element appear at the bottom of the page"},"comment":{"url":"https://api.github.com/repos/Yoast/yoast-components/issues/comments/410630156","html_url":"https://github.com/Yoast/yoast-components/issues/560#issuecomment-410630156","issue_url":"https://api.github.com/repos/Yoast/yoast-components/issues/560","id":410630156,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDYzMDE1Ng==","user":{"login":"afercia","id":1682452,"node_id":"MDQ6VXNlcjE2ODI0NTI=","avatar_url":"https://avatars1.githubusercontent.com/u/1682452?v=4","gravatar_id":"","url":"https://api.github.com/users/afercia","html_url":"https://github.com/afercia","followers_url":"https://api.github.com/users/afercia/followers","following_url":"https://api.github.com/users/afercia/following{/other_user}","gists_url":"https://api.github.com/users/afercia/gists{/gist_id}","starred_url":"https://api.github.com/users/afercia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afercia/subscriptions","organizations_url":"https://api.github.com/users/afercia/orgs","repos_url":"https://api.github.com/users/afercia/repos","events_url":"https://api.github.com/users/afercia/events{/privacy}","received_events_url":"https://api.github.com/users/afercia/received_events","type":"User","site_admin":false},"created_at":"2018-08-06T08:31:09Z","updated_at":"2018-08-06T08:31:09Z","author_association":"CONTRIBUTOR","body":"Note: happens also on the new meta box."}}
{"actor":{"display_login":"afercia"}}