mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-20 04:20:55 +01:00
Add "tabindex" to Remarkup reference lists
Summary: Prevent keyboard focus of these links so we don't disrupt tab order from comments to "Submit". Arguably I should make a "function" for this or something but there's nowhere to really put it that makes any sense right now. Test Plan: Verified Firefox skips these links in tab order. Reviewers: fratrik, btrahan, jungejason Reviewed By: fratrik CC: aran, fratrik Maniphest Tasks: T661 Differential Revision: 1180
This commit is contained in:
parent
4fd81150be
commit
d13906ff96
3 changed files with 6 additions and 2 deletions
|
@ -110,9 +110,10 @@ final class DifferentialAddCommentView extends AphrontView {
|
|||
array(
|
||||
'href' => PhabricatorEnv::getDoclink(
|
||||
'article/Remarkup_Reference.html'),
|
||||
'tabindex' => '-1',
|
||||
'target' => '_blank',
|
||||
),
|
||||
'Remarkup Reference')))
|
||||
'Formatting Reference')))
|
||||
->appendChild(
|
||||
id(new AphrontFormSubmitControl())
|
||||
->setValue($is_serious ? 'Submit' : 'Clowncopterize'));
|
||||
|
|
|
@ -412,9 +412,10 @@ class ManiphestTaskDetailController extends ManiphestController {
|
|||
'a',
|
||||
array(
|
||||
'href' => $remarkup_href,
|
||||
'tabindex' => '-1',
|
||||
'target' => '_blank',
|
||||
),
|
||||
'Remarkup Syntax Reference'))
|
||||
'Formatting Reference'))
|
||||
->setID('transaction-comments'))
|
||||
->appendChild(
|
||||
id(new AphrontFormDragAndDropUploadControl())
|
||||
|
|
|
@ -129,6 +129,8 @@ class PhrictionEditController
|
|||
'a',
|
||||
array(
|
||||
'href' => PhabricatorEnv::getDoclink('article/Remarkup_Reference.html'),
|
||||
'tabindex' => '-1',
|
||||
'target' => '_blank',
|
||||
),
|
||||
'Formatting Reference');
|
||||
|
||||
|
|
Loading…
Reference in a new issue