Accessible dialogs

Could you explain the modifications in this file? Most of the other changes in the PR are about adding accessibleInfo in dialog, which is fine but here, I don't get what's happening.