{"action":"created","issue":{"url":"https://api.github.com/repos/nvaccess/nvda/issues/5825","repository_url":"https://api.github.com/repos/nvaccess/nvda","labels_url":"https://api.github.com/repos/nvaccess/nvda/issues/5825/labels{/name}","comments_url":"https://api.github.com/repos/nvaccess/nvda/issues/5825/comments","events_url":"https://api.github.com/repos/nvaccess/nvda/issues/5825/events","html_url":"https://github.com/nvaccess/nvda/issues/5825","id":142291794,"number":5825,"title":"Setting focus to an element: NVDA doesn't announce it, when elements around it are set to aria-hidden!","user":{"login":"jmuheim","id":1814983,"avatar_url":"https://avatars.githubusercontent.com/u/1814983?v=3","gravatar_id":"","url":"https://api.github.com/users/jmuheim","html_url":"https://github.com/jmuheim","followers_url":"https://api.github.com/users/jmuheim/followers","following_url":"https://api.github.com/users/jmuheim/following{/other_user}","gists_url":"https://api.github.com/users/jmuheim/gists{/gist_id}","starred_url":"https://api.github.com/users/jmuheim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmuheim/subscriptions","organizations_url":"https://api.github.com/users/jmuheim/orgs","repos_url":"https://api.github.com/users/jmuheim/repos","events_url":"https://api.github.com/users/jmuheim/events{/privacy}","received_events_url":"https://api.github.com/users/jmuheim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-21T09:12:21Z","updated_at":"2016-03-21T14:24:19Z","closed_at":null,"body":"I want to create a proof of concept of a dialog box (without ARIA, only plain HTML and some basic JavaScript).\r\n\r\nI want the focus to be set to the title of the dialog as soon as a button \"open dialog\" is pressed. To make the background invisible to the screenreader while the dialog is open, I set everything around the dialog to `aria-hidden=\"true\"`.\r\n\r\nInterestingly, while this works nicely in JAWS and both FF/IE, NVDA seems to have problems with setting stuff to `aria-hidden`, as it doesn't announce the title of the dialog then (in both FF and IE). When I remove the line in the JavaScript that sets `aria-hidden`, NVDA announces stuff correctly.\r\n\r\nA working demo is on CodePen:\r\n\r\nhttp://codepen.io/jmuheim/pen/eZvyXq\r\n\r\nUse the debug view for screenreader testing:\r\n\r\nhttp://s.codepen.io/jmuheim/debug/eZvyXq\r\n\r\nCan anybody tell me how I can force NVDA to announce the title even when I set `aria-hidden` to all elements around the dialog? I don't see any reason why it shouldn't."},"comment":{"url":"https://api.github.com/repos/nvaccess/nvda/issues/comments/199311087","html_url":"https://github.com/nvaccess/nvda/issues/5825#issuecomment-199311087","issue_url":"https://api.github.com/repos/nvaccess/nvda/issues/5825","id":199311087,"user":{"login":"jmuheim","id":1814983,"avatar_url":"https://avatars.githubusercontent.com/u/1814983?v=3","gravatar_id":"","url":"https://api.github.com/users/jmuheim","html_url":"https://github.com/jmuheim","followers_url":"https://api.github.com/users/jmuheim/followers","following_url":"https://api.github.com/users/jmuheim/following{/other_user}","gists_url":"https://api.github.com/users/jmuheim/gists{/gist_id}","starred_url":"https://api.github.com/users/jmuheim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmuheim/subscriptions","organizations_url":"https://api.github.com/users/jmuheim/orgs","repos_url":"https://api.github.com/users/jmuheim/repos","events_url":"https://api.github.com/users/jmuheim/events{/privacy}","received_events_url":"https://api.github.com/users/jmuheim/received_events","type":"User","site_admin":false},"created_at":"2016-03-21T14:24:19Z","updated_at":"2016-03-21T14:24:19Z","body":"I have added a delay of 5secs to make sure the items are \"really there\", but this doesn't seem to solve the problem."}}