Skip to content

Commit 8451997

Browse files
committed
Accessibility fixes
1 parent 3b103a7 commit 8451997

File tree

16 files changed

+23
-23
lines changed

16 files changed

+23
-23
lines changed

src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWeb-CSharp/Components/Layout/ManageNavMenu.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<NavLink id="profile" class="nav-link" href="/Account/Manage" Match="NavLinkMatch.All">Profile</NavLink>
99
</li>
1010
<li class="nav-item">
11-
<NavLink id="email" class="nav-link" href="/Account/Manage/Email">Email</NavLink>
11+
<NavLink id="manage-email" class="nav-link" href="/Account/Manage/Email">Email</NavLink>
1212
</li>
1313
<li class="nav-item">
1414
<NavLink id="change-password" class="nav-link" href="/Account/Manage/ChangePassword">Password</NavLink>

src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWeb-CSharp/Components/Pages/Account/ExternalLogin.razor

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@
2727
<h2 id="external-login-title">Associate your @providerDisplayName account.</h2>
2828
<hr />
2929

30-
<p id="external-login-description" class="text-info">
30+
<div id="external-login-description" class="alert alert-info">
3131
You've successfully authenticated with <strong>@providerDisplayName</strong>.
3232
Please enter an email address for this site below and click the Register button to finish
3333
logging in.
34-
</p>
34+
</div>
3535

3636
<div class="row">
3737
<div class="col-md-4">
3838
<EditForm id="confirmation-form" Model="Input" OnValidSubmit="OnValidSubmitAsync" FormName="confirmation" method="post">
3939
<DataAnnotationsValidator />
40-
<ValidationSummary />
40+
<ValidationSummary class="text-danger" />
4141
<div class="form-floating mb-3">
4242
<InputText id="email" @bind-Value="Input.Email" class="form-control" autocomplete="email" placeholder="Please enter your email." />
4343
<label for="email" class="form-label">Email</label>

src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWeb-CSharp/Components/Pages/Account/ForgotPassword.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<div class="col-md-4">
2222
<EditForm Model="Input" FormName="forgot-password" OnValidSubmit="OnValidSubmitAsync" method="post">
2323
<DataAnnotationsValidator />
24-
<ValidationSummary class="text-danger" role="alert" />
24+
<ValidationSummary class="text-danger" />
2525

2626
<div class="form-floating mb-3">
2727
<InputText id="email" @bind-Value="Input.Email" class="form-control" autocomplete="username" aria-required="true" placeholder="[email protected]" />

src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWeb-CSharp/Components/Pages/Account/Login.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<EditForm id="account" Model="Input" method="post" OnValidSubmit="LoginUser" FormName="login">
2222
<h2>Use a local account to log in.</h2>
2323
<hr />
24-
<ValidationSummary class="text-danger" role="alert" />
24+
<ValidationSummary class="text-danger" />
2525
<div class="form-floating mb-3">
2626
<InputText id="email" @bind-Value="Input.Email" class="form-control" autocomplete="username" aria-required="true" placeholder="[email protected]" />
2727
<label for="email" class="form-label">Email</label>

src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWeb-CSharp/Components/Pages/Account/LoginWith2fa.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<input type="hidden" name="ReturnUrl" value="@ReturnUrl" />
2323
<input type="hidden" name="RememberMe" value="@RememberMe" />
2424
<DataAnnotationsValidator />
25-
<ValidationSummary class="text-danger" role="alert" />
25+
<ValidationSummary class="text-danger" />
2626
<div class="form-floating mb-3">
2727
<InputText id="two-factor-code" @bind-Value="Input.TwoFactorCode" class="form-control" autocomplete="off" />
2828
<label for="two-factor-code" class="form-label">Authenticator code</label>

src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWeb-CSharp/Components/Pages/Account/LoginWithRecoveryCode.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<div class="col-md-4">
2424
<EditForm Model="Input" FormName="login-with-recovery-code" OnValidSubmit="OnValidSubmitAsync" method="post">
2525
<DataAnnotationsValidator />
26-
<ValidationSummary class="text-danger" role="alert" />
26+
<ValidationSummary class="text-danger" />
2727
<div class="form-floating mb-3">
2828
<InputText id="recovery-code" @bind-Value="Input.RecoveryCode" class="form-control" autocomplete="off" placeholder="RecoveryCode" />
2929
<label for="recovery-code" class="form-label">Recovery Code</label>

src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWeb-CSharp/Components/Pages/Account/Manage/ChangePassword.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<div class="col-md-6">
1919
<EditForm id="change-password-form" Model="Input" FormName="change-password" OnValidSubmit="OnValidSubmitAsync" method="post">
2020
<DataAnnotationsValidator />
21-
<ValidationSummary class="text-danger" role="alert" />
21+
<ValidationSummary class="text-danger" />
2222
<div class="form-floating mb-3">
2323
<InputText id="old-password" type="password" @bind-Value="Input.OldPassword" class="form-control" autocomplete="current-password" aria-required="true" placeholder="Please enter your old password." />
2424
<label for="old-password" class="form-label">Old password</label>
@@ -30,7 +30,7 @@
3030
<ValidationMessage For="() => Input.NewPassword" class="text-danger" />
3131
</div>
3232
<div class="form-floating mb-3">
33-
<InputText id="confirm-password" type="password" @bind-Value="Input.ConfirmPassword" class="form-control" autocomplete="confirm-password" aria-required="true" placeholder="Please confirm your new password." />
33+
<InputText id="confirm-password" type="password" @bind-Value="Input.ConfirmPassword" class="form-control" autocomplete="new-password" aria-required="true" placeholder="Please confirm your new password." />
3434
<label for="confirm-password" class="form-label">Confirm password</label>
3535
<ValidationMessage For="() => Input.ConfirmPassword" class="text-danger" />
3636
</div>

src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWeb-CSharp/Components/Pages/Account/Manage/DeletePersonalData.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<div>
2626
<EditForm id="delete-user" Model="Input" FormName="delete-user" OnValidSubmit="OnValidSubmitAsync" method="post">
2727
<DataAnnotationsValidator />
28-
<ValidationSummary class="text-danger" role="alert"/>
28+
<ValidationSummary class="text-danger" />
2929
@if (_requirePassword)
3030
{
3131
<div class="form-floating mb-3">

src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWeb-CSharp/Components/Pages/Account/Manage/Email.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
</form>
2626
<EditForm id="change-email-form" Model="Input" FormName="change-email" OnValidSubmit="OnValidSubmitAsync" method="post">
2727
<DataAnnotationsValidator />
28-
<ValidationSummary class="text-danger" role="alert" />
28+
<ValidationSummary class="text-danger" />
2929
@if (_isEmailConfirmed)
3030
{
3131
<div class="form-floating mb-3 input-group">

src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWeb-CSharp/Components/Pages/Account/Manage/EnableAuthenticator.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
<ValidationMessage For="() => Input.Code" class="text-danger" />
5252
</div>
5353
<button type="submit" class="w-100 btn btn-lg btn-primary">Verify</button>
54-
<ValidationSummary class="text-danger" role="alert" />
54+
<ValidationSummary class="text-danger" />
5555
</EditForm>
5656
</div>
5757
</div>

0 commit comments

Comments
 (0)