Issue #2990588 by Utkarsh_33, andrewmacpherson, oriol_e9g, smustgrave, shaal: Visually-hidden refresh button in Field UI fails WCAG Focus Visible

(cherry picked from commit b97be27a89)
merge-requests/9332/head
nod_ 2024-06-24 17:19:53 +02:00
parent 8905837f69
commit d0592e79ef
No known key found for this signature in database
GPG Key ID: 76624892606FA197
1 changed files with 5 additions and 1 deletions

View File

@ -268,7 +268,11 @@ abstract class EntityDisplayFormBase extends EntityForm {
// spinners will be added manually by the client-side script.
'progress' => 'none',
],
'#attributes' => ['class' => ['visually-hidden']],
'#attributes' => [
'class' => ['visually-hidden'],
// Ensure the button is not focusable via keyboard navigation.
'tabindex' => '-1',
],
];
$form['actions'] = ['#type' => 'actions'];