Skip to content

Commit

Permalink
Accessibility: improve contrast tweaks (#34143)
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoK authored Jul 8, 2021
1 parent c0de775 commit cb9ed02
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 34 deletions.
15 changes: 7 additions & 8 deletions src/Identity/UI/src/wwwroot/V4/css/site.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ a.navbar-brand {
word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
color: #0366d6;
color: #0077cc;
}

.form-control:focus {
border-color: #0077cc;
box-shadow: 0 0 0 0.2rem #0077cc;
}

.btn-primary {
Expand All @@ -28,8 +32,6 @@ a {
outline: black auto 1px;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
font-size: 14px;
}
Expand Down Expand Up @@ -63,15 +65,12 @@ button.accept-policy {
line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
position: relative;
min-height: 100%;
}

body {
/* Margin bottom by footer height */
margin-bottom: 60px;
}
.footer {
Expand All @@ -80,5 +79,5 @@ body {
width: 100%;
overflow: scroll;
white-space: nowrap;
line-height: 60px; /* Vertically center the text there */
line-height: 60px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ html, body {
}

a, .btn-link {
color: #0366d6;
color: #0077cc;
}

.btn-primary {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ html, body {
}

a, .btn-link {
color: #0366d6;
color: #0077cc;
}

.btn-primary {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ a.navbar-brand {
word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
color: #0366d6;
color: #0077cc;
}

.btn-primary {
Expand All @@ -24,8 +23,6 @@ a {
border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
font-size: 14px;
}
Expand All @@ -51,21 +48,18 @@ button.accept-policy {
line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
position: relative;
min-height: 100%;
}

body {
/* Margin bottom by footer height */
margin-bottom: 60px;
}
.footer {
position: absolute;
bottom: 0;
width: 100%;
white-space: nowrap;
line-height: 60px; /* Vertically center the text there */
line-height: 60px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ a.navbar-brand {
word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
color: #0366d6;
color: #0077cc;
}

.btn-primary {
Expand All @@ -24,8 +23,6 @@ a {
border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
font-size: 14px;
}
Expand All @@ -51,21 +48,18 @@ button.accept-policy {
line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
position: relative;
min-height: 100%;
}

body {
/* Margin bottom by footer height */
margin-bottom: 60px;
}
.footer {
position: absolute;
bottom: 0;
width: 100%;
white-space: nowrap;
line-height: 60px; /* Vertically center the text there */
line-height: 60px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ a.navbar-brand {
word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
color: #0366d6;
color: #0077cc;
}

.btn-primary {
Expand All @@ -24,8 +23,6 @@ a {
border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
font-size: 14px;
}
Expand All @@ -51,21 +48,18 @@ button.accept-policy {
line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
position: relative;
min-height: 100%;
}

body {
/* Margin bottom by footer height */
margin-bottom: 60px;
}
.footer {
position: absolute;
bottom: 0;
width: 100%;
white-space: nowrap;
line-height: 60px; /* Vertically center the text there */
line-height: 60px;
}

0 comments on commit cb9ed02

Please # to comment.