summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLee Rowlands2017-08-12 17:53:24 +1000
committerLee Rowlands2017-08-12 17:54:28 +1000
commit9f0c704f9857963b5bbe599229fb9848c806c66c (patch)
treebc74e176d39091f407137bd486966fa136fb1461
parent084780a642a6adad5d3dbe1a7b41a77979839325 (diff)
Issue #2898913 by Sam152, andrewmacpherson, Wim Leers: Review a11y concerns in ContentModerationConfigureForm
(cherry picked from commit 3cb53fef7886ee8747c41fcf6ba40e8fc24fc6de)
-rw-r--r--core/modules/content_moderation/src/Form/ContentModerationConfigureForm.php1
-rw-r--r--core/modules/workflows/src/Form/WorkflowEditForm.php4
2 files changed, 0 insertions, 5 deletions
diff --git a/core/modules/content_moderation/src/Form/ContentModerationConfigureForm.php b/core/modules/content_moderation/src/Form/ContentModerationConfigureForm.php
index 011b3ee..f9520b6 100644
--- a/core/modules/content_moderation/src/Form/ContentModerationConfigureForm.php
+++ b/core/modules/content_moderation/src/Form/ContentModerationConfigureForm.php
@@ -110,7 +110,6 @@ class ContentModerationConfigureForm extends WorkflowTypeConfigureFormBase imple
'title' => $this->t('Select'),
'url' => Url::fromRoute('content_moderation.workflow_type_edit_form', ['workflow' => $workflow->id(), 'entity_type_id' => $entity_type->id()]),
'attributes' => [
- 'aria-label' => $this->t('Select'),
'class' => ['use-ajax'],
'data-dialog-type' => 'modal',
'data-dialog-options' => Json::encode([
diff --git a/core/modules/workflows/src/Form/WorkflowEditForm.php b/core/modules/workflows/src/Form/WorkflowEditForm.php
index 47e0b03..889b7bb 100644
--- a/core/modules/workflows/src/Form/WorkflowEditForm.php
+++ b/core/modules/workflows/src/Form/WorkflowEditForm.php
@@ -115,7 +115,6 @@ class WorkflowEditForm extends EntityForm {
'edit' => [
'title' => $this->t('Edit'),
'url' => Url::fromRoute('entity.workflow.edit_state_form', ['workflow' => $workflow->id(), 'workflow_state' => $state->id()]),
- 'attributes' => ['aria-label' => $this->t('Edit @state state', ['@state' => $state->label()])],
]
];
if ($this->entity->access('delete-state:' . $state->id())) {
@@ -125,7 +124,6 @@ class WorkflowEditForm extends EntityForm {
'workflow' => $workflow->id(),
'workflow_state' => $state->id()
]),
- 'attributes' => ['aria-label' => $this->t('Delete @state state', ['@state' => $state->label()])],
];
}
$form['states_container']['states'][$state->id()] = [
@@ -178,12 +176,10 @@ class WorkflowEditForm extends EntityForm {
$links['edit'] = [
'title' => $this->t('Edit'),
'url' => Url::fromRoute('entity.workflow.edit_transition_form', ['workflow' => $workflow->id(), 'workflow_transition' => $transition->id()]),
- 'attributes' => ['aria-label' => $this->t('Edit \'@transition\' transition', ['@transition' => $transition->label()])],
];
$links['delete'] = [
'title' => t('Delete'),
'url' => Url::fromRoute('entity.workflow.delete_transition_form', ['workflow' => $workflow->id(), 'workflow_transition' => $transition->id()]),
- 'attributes' => ['aria-label' => $this->t('Delete \'@transition\' transition', ['@transition' => $transition->label()])],
];
$form['transitions_container']['transitions'][$transition->id()] = [
'#attributes' => ['class' => ['draggable']],