Skip to content

Commit cb9ed02

Browse files
authored
Accessibility: improve contrast tweaks (#34143)
1 parent c0de775 commit cb9ed02

File tree

6 files changed

+15
-34
lines changed
  • src
    • Identity/UI/src/wwwroot/V4/css
    • ProjectTemplates/Web.ProjectTemplates/content
      • BlazorServerWeb-CSharp/wwwroot/css
      • ComponentsWebAssembly-CSharp/Client/wwwroot/css
      • RazorPagesWeb-CSharp/wwwroot/css
      • StarterWeb-CSharp/wwwroot/css
      • StarterWeb-FSharp/wwwroot/css

6 files changed

+15
-34
lines changed

src/Identity/UI/src/wwwroot/V4/css/site.css

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,13 @@ a.navbar-brand {
77
word-break: break-all;
88
}
99

10-
/* Provide sufficient contrast against white background */
1110
a {
12-
color: #0366d6;
11+
color: #0077cc;
12+
}
13+
14+
.form-control:focus {
15+
border-color: #0077cc;
16+
box-shadow: 0 0 0 0.2rem #0077cc;
1317
}
1418

1519
.btn-primary {
@@ -28,8 +32,6 @@ a {
2832
outline: black auto 1px;
2933
}
3034

31-
/* Sticky footer styles
32-
-------------------------------------------------- */
3335
html {
3436
font-size: 14px;
3537
}
@@ -63,15 +65,12 @@ button.accept-policy {
6365
line-height: inherit;
6466
}
6567

66-
/* Sticky footer styles
67-
-------------------------------------------------- */
6868
html {
6969
position: relative;
7070
min-height: 100%;
7171
}
7272

7373
body {
74-
/* Margin bottom by footer height */
7574
margin-bottom: 60px;
7675
}
7776
.footer {
@@ -80,5 +79,5 @@ body {
8079
width: 100%;
8180
overflow: scroll;
8281
white-space: nowrap;
83-
line-height: 60px; /* Vertically center the text there */
82+
line-height: 60px;
8483
}

src/ProjectTemplates/Web.ProjectTemplates/content/BlazorServerWeb-CSharp/wwwroot/css/site.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ html, body {
55
}
66

77
a, .btn-link {
8-
color: #0366d6;
8+
color: #0077cc;
99
}
1010

1111
.btn-primary {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ html, body {
55
}
66

77
a, .btn-link {
8-
color: #0366d6;
8+
color: #0077cc;
99
}
1010

1111
.btn-primary {

src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/wwwroot/css/site.css

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ a.navbar-brand {
77
word-break: break-all;
88
}
99

10-
/* Provide sufficient contrast against white background */
1110
a {
12-
color: #0366d6;
11+
color: #0077cc;
1312
}
1413

1514
.btn-primary {
@@ -24,8 +23,6 @@ a {
2423
border-color: #1861ac;
2524
}
2625

27-
/* Sticky footer styles
28-
-------------------------------------------------- */
2926
html {
3027
font-size: 14px;
3128
}
@@ -51,21 +48,18 @@ button.accept-policy {
5148
line-height: inherit;
5249
}
5350

54-
/* Sticky footer styles
55-
-------------------------------------------------- */
5651
html {
5752
position: relative;
5853
min-height: 100%;
5954
}
6055

6156
body {
62-
/* Margin bottom by footer height */
6357
margin-bottom: 60px;
6458
}
6559
.footer {
6660
position: absolute;
6761
bottom: 0;
6862
width: 100%;
6963
white-space: nowrap;
70-
line-height: 60px; /* Vertically center the text there */
64+
line-height: 60px;
7165
}

src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/wwwroot/css/site.css

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ a.navbar-brand {
77
word-break: break-all;
88
}
99

10-
/* Provide sufficient contrast against white background */
1110
a {
12-
color: #0366d6;
11+
color: #0077cc;
1312
}
1413

1514
.btn-primary {
@@ -24,8 +23,6 @@ a {
2423
border-color: #1861ac;
2524
}
2625

27-
/* Sticky footer styles
28-
-------------------------------------------------- */
2926
html {
3027
font-size: 14px;
3128
}
@@ -51,21 +48,18 @@ button.accept-policy {
5148
line-height: inherit;
5249
}
5350

54-
/* Sticky footer styles
55-
-------------------------------------------------- */
5651
html {
5752
position: relative;
5853
min-height: 100%;
5954
}
6055

6156
body {
62-
/* Margin bottom by footer height */
6357
margin-bottom: 60px;
6458
}
6559
.footer {
6660
position: absolute;
6761
bottom: 0;
6862
width: 100%;
6963
white-space: nowrap;
70-
line-height: 60px; /* Vertically center the text there */
64+
line-height: 60px;
7165
}

src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/wwwroot/css/site.css

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ a.navbar-brand {
77
word-break: break-all;
88
}
99

10-
/* Provide sufficient contrast against white background */
1110
a {
12-
color: #0366d6;
11+
color: #0077cc;
1312
}
1413

1514
.btn-primary {
@@ -24,8 +23,6 @@ a {
2423
border-color: #1861ac;
2524
}
2625

27-
/* Sticky footer styles
28-
-------------------------------------------------- */
2926
html {
3027
font-size: 14px;
3128
}
@@ -51,21 +48,18 @@ button.accept-policy {
5148
line-height: inherit;
5249
}
5350

54-
/* Sticky footer styles
55-
-------------------------------------------------- */
5651
html {
5752
position: relative;
5853
min-height: 100%;
5954
}
6055

6156
body {
62-
/* Margin bottom by footer height */
6357
margin-bottom: 60px;
6458
}
6559
.footer {
6660
position: absolute;
6761
bottom: 0;
6862
width: 100%;
6963
white-space: nowrap;
70-
line-height: 60px; /* Vertically center the text there */
64+
line-height: 60px;
7165
}

0 commit comments

Comments
 (0)