1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-19 03:50:54 +01:00

Add role=dialog to all dialogs

Summary: Seen some complaints about usability here, adding role=dialog to improve when these trigger.

Test Plan: Turn on Voiceover, tab over to log out link, here proper dialog title and text before highlighted submit button.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D15993
This commit is contained in:
Chad Little 2016-05-31 12:15:23 -07:00
parent e64dfbcbd8
commit b23c85b169

View file

@ -276,6 +276,7 @@ final class AphrontDialogView
$attributes = array( $attributes = array(
'class' => implode(' ', $classes), 'class' => implode(' ', $classes),
'sigil' => 'jx-dialog', 'sigil' => 'jx-dialog',
'role' => 'dialog',
); );
$form_attributes = array( $form_attributes = array(