Skip to content

Commit

Permalink
consistent button styling
Browse files Browse the repository at this point in the history
(black text on blue for primary for now to hit contrast needs)
Also re-enable underlines for hover on links.
At some point this needs a thorough review for accessibility
  • Loading branch information
josh-heyer committed Sep 29, 2023
1 parent c8e853b commit 814c26a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
7 changes: 2 additions & 5 deletions src/styles/_dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,10 @@ html.dark {
body {
$blue: $blue;
color: darken($light, 10%) !important;
a {
a:not(.btn) {
color: lighten($blue, 10%);
}
a.btn {
color: $light !important;
}
a:hover {
a:not(.btn):hover {
color: lighten($blue, 35%);
}
.active:hover {
Expand Down
2 changes: 1 addition & 1 deletion src/styles/_overrides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ a code {
.version-dropdown.dropdown-menu,
[aria-labelledby="page-actions-button"] {
border-radius: $border-radius !important;
border-top-color: #4d89b1 !important;
border-top-color: $blue !important;
}

.dropdown-item.active,
Expand Down
2 changes: 1 addition & 1 deletion src/styles/_theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ $h6-font-size: $font-size-base * 0.8;
$text-muted: $gray-500;
$code-color: #457a00;
$link-decoration: none;
$link-hover-decoration: none;
$link-hover-decoration: underline;

// forms
$input-btn-padding-y: 0.5rem;
Expand Down

0 comments on commit 814c26a

Please sign in to comment.