dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.49k stars 10.03k forks source link

Visual and programmatic label of "Email" field is not same: A11y_ASP.NET_BlazorWebApp_Register_DevTools #56289

Closed PoojaNamde closed 1 month ago

PoojaNamde commented 5 months ago

GitHub Tags:

A11yMAS; #A11yTCS; #A11ySev2; #BM_ASP.NET_Web_Jun2024; #.NETCore; #WCAG4.1.2; #DesktopWeb; #Win11; #FTP; #DevTools; #ChromiumEdge;

Environment Details:

App name: ASP.NET Window Version: Win 11 OS Build: 22621.3085

Repro Steps:

  1. Download the "BlazorWebApp" zip file and run .exe file.
  2. Command prompt will open, TAB to "http://localhost:5000/" link and press CTRL + ENTER key.
  3. TAB to "Register" tab and hit ENTER key. TAB to "Email" field.
  4. Observe the issue.

Actual Result:

Visual and programmatic label of "Email" field is not same.

Similar issue is observed in "BlazorWebApp" and "BlazorWebAppUnchanged" template for 'Email' field throughout the application.

Expected Result:

Visual and programmatic label of "Email" field should be same.

User Impact:

Here screen reader users will not get correct information about the field.

Attachment:

56289_A11y_ASP NET_BlazorWebApp_Register_DevTools

mkArtakMSFT commented 5 months ago

Looks like the issue here is that the label element refers to an element with id=email but we don't have such defined. We should probably add the id=email attribute to the input field.

Yash14j commented 4 months ago

GithubTags:#Rev:yaja;

PoojaNamde commented 1 month ago

Closed; #Regressed:09-20-24;

Verified the bug in environment http://localhost:5000/Account/[Register](http://localhost:5000/Account/Register) Bug is fixed and does not repro. Hence closing the bug. Please find the closing attachment

image