Skip to content

Commit

Permalink
Remove status class from login error container, use announcer in show…
Browse files Browse the repository at this point in the history
…Error function
  • Loading branch information
Lupe Camacho authored and Lupe Camacho committed Aug 20, 2024
1 parent c004169 commit f7afc10
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/templates/_special/login.twig
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
</form>
{% endif %}

<div class="login-errors hidden" role="status"></div>
<div class="login-errors hidden"></div>
</div>

<div class="flex alternative-login-methods hidden">
Expand Down
2 changes: 1 addition & 1 deletion src/web/assets/admintable/dist/js/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/web/assets/admintable/dist/js/app.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/web/assets/cp/dist/cp.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/web/assets/cp/dist/cp.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/web/assets/cp/src/js/LoginForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ Craft.LoginForm = Garnish.Base.extend(
.velocity('fadeIn');

this.$errors.removeClass('hidden');
Craft.cp.announce(error);
this.onResize();
},

Expand Down

0 comments on commit f7afc10

Please sign in to comment.