diff --git a/app/views/devise/passwords/edit.html.haml b/app/views/devise/passwords/edit.html.haml
index 692730a63..95cb39a74 100644
--- a/app/views/devise/passwords/edit.html.haml
+++ b/app/views/devise/passwords/edit.html.haml
@@ -12,8 +12,8 @@
= f.hidden_field :reset_password_token
- %fieldset.fr-mb-0.fr-fieldset{ aria: { labelledby: 'edit-password-legend' } }
- %legend.fr-fieldset__legend#edit-password-legend
+ %fieldset.fr-mb-0.fr-fieldset
+ %legend.fr-fieldset__legend
%h1.fr-h2= I18n.t('views.users.passwords.edit.subtitle')
.fr-fieldset__element