A11y_.NET Core_ASP.NETCore_BlazorServerManageurAccntProfile_NonTextContrast: The color contrast ratio of the focus indicator of the "Save" button is less than 3:1.
Truptik12 opened this issue · comments
“Check out Accessibility Insights! - Identify accessibility bugs before check-in and make bug fixing faster and easier.”
GitHubTags:#A11yMAS;#A11yWCAG2.1;#A11yTCS;#.NET Core[aspnetcore]-Win32-June2022;#.NET Core;#A11ySev2;#WCAG1.4.11;#DesktopApp;#Win11;#ColorContrast;#Benchmark;
Environment Details:
.NET Core
ASP.NET Core
Operating System: Windows 11 Enterprise 21H2
Steps to Reproduce:
- Open command prompt
- Create a folder using command "mkdir foldername" e.g. "mkdir BlazorServer"
- Move to the created directory using command "cd foldername"
- Run the following command "dotnet new blazorserver -au Individual" and hit enter.
- Run the following command "dotnet run"
- Copy the First URL link from Command prompt and copy it
- Paste it in URL section of Browser and hit Search
- Browser page will open with above template loaded
- To get access to all the pages you'll need to register first and then log-in.
- Login with your registered account
- Tab till "Hello with the userid" and click on it.
- Navigate to profile and click on it
- Turn on Color contrast analyzer and check that The Color contrast ratio of "Save" is less than 3:1.
Actual:
The Color contrast ratio of the focus indicator of the "Save" button is less than 3:1.
Expected:
The Color contrast ratio of the focus indicator of the "Save" button should be more than or equal to 3:1.
User Impact:
Low vision users won't be able to see the focus indicator.
Ping @HaoK, can you check out what the problem might be? This is an RC2 build and it seems to still repro.
Well I'm a little confused because this bug is talking about blazor server, not angular which is what the attachment is showing with the command prompt.
I see the fix in the site.css for a build I installed from last week (7.0.100-rc.2.22417.1 [C:\Program Files\dotnet\sdk])
:
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}
That said there is a blocking bug preventing actually hitting the forgot password page in these builds, so its likely whatever build the testers are using is not actually the correct one, but the fix is now in the css
@Truptik12 - the updated machine setup instructions are as follows:
- On a clean machine install .NET RC2 SDK from the Top, Middle cell in the Installer Table
- Open a command prompt and enter the following command: dotnet nuget add source -n dotnet7 https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet7/nuget/v3/index.json
- Follow the test repro steps from here.
Issue is fixed. Adding #Closed; tag.