Skip to content

Commit 51dc573

Browse files
authored
Blazor templates Accessebility (#50785)
* fix "About" link dissapearing * fix app name * fix navmenu tab color contrast with background and text * set user-scalable in meta tag * fix text contrast of code tag against bootstrap alert-warning background
1 parent 50a1685 commit 51dc573

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWeb-CSharp/Components/App.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<head>
55
<meta charset="utf-8" />
6-
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<base href="/" />
88
@*#if (SampleContent)
99
<link rel="stylesheet" href="bootstrap/bootstrap.min.css" />

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,7 @@ main {
3838
}
3939

4040
@media (max-width: 640.98px) {
41-
.top-row:not(.auth) {
42-
display: none;
43-
}
44-
45-
.top-row.auth {
41+
.top-row {
4642
justify-content: space-between;
4743
}
4844

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="top-row ps-3 navbar navbar-dark">
22
<div class="container-fluid">
3-
<a class="navbar-brand" href="">MyBlazorWeb</a>
3+
<a class="navbar-brand" href="">BlazorWeb-CSharp</a>
44
</div>
55
</div>
66

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
}
7070

7171
.nav-item ::deep a.active {
72-
background-color: rgba(255,255,255,0.25);
72+
background-color: rgba(255,255,255,0.37);
7373
color: white;
7474
}
7575

src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/Components/Layout/NavMenu.razor.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
}
5757

5858
.nav-item ::deep a.active {
59-
background-color: rgba(255,255,255,0.4);
59+
background-color: rgba(255,255,255,0.37);
6060
color: white;
6161
}
6262

src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/wwwroot/css/app.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,7 @@ a, .btn-link {
9999
.loading-progress-text:after {
100100
content: var(--blazor-load-percentage-text, "Loading");
101101
}
102+
103+
code {
104+
color: #c02d76;
105+
}

src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/wwwroot/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<head>
55
<meta charset="utf-8" />
6-
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>ComponentsWebAssembly-CSharp</title>
88
<base href="/" />
99
<!--#if SampleContent -->

0 commit comments

Comments
 (0)