Skip to content

Commit

Permalink
fix some a11y contrast issues
Browse files Browse the repository at this point in the history
  • Loading branch information
e111077 committed Feb 28, 2024
1 parent 006b891 commit d3d0078
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/lit-dev-content/site/_includes/site-nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<a href="{{ site.baseurl }}/blog/">Blog</a></li>
<li class="navItem">
<litdev-search-modal></litdev-search-modal></li>
<span class="icons">
<li class="icons">
<li class="navItem">
<theme-switcher></theme-switcher>
</li>
Expand All @@ -43,4 +43,4 @@
</svg>
</a>
</li>
</span>
</li>
4 changes: 2 additions & 2 deletions packages/lit-dev-content/site/css/colors.css
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ body.dark {
--sys-color-on-tertiary: #003824;
--sys-color-tertiary-container: #006a47;
--sys-color-on-tertiary-container: #ffffff;
--sys-color-on-primary: hsl(242, 100%, 34%);
--sys-color-on-primary: hsl(242, 100%, 12%);
--sys-color-surface: hsl(0, 0%, 7%);
--sys-color-background: hsl(0, 0%, 7%);
--sys-color-on-background: hsl(0, 0%, 89%);
Expand Down Expand Up @@ -190,7 +190,7 @@ body.dark {
--sys-color-on-tertiary: #003824;
--sys-color-tertiary-container: #006a47;
--sys-color-on-tertiary-container: #ffffff;
--sys-color-on-primary: hsl(242, 100%, 34%);
--sys-color-on-primary: hsl(242, 100%, 12%);
--sys-color-surface: hsl(0, 0%, 7%);
--sys-color-background: hsl(0, 0%, 7%);
--sys-color-on-background: hsl(0, 0%, 89%);
Expand Down
1 change: 1 addition & 0 deletions packages/lit-dev-content/site/css/footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@

#footerBottom > p > a {
color: var(--sys-color-primary);
font-weight: 600;
}

#footerBottom > p > a:hover {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,12 @@ export class LitDevCodeLanguageSwitch extends LitElement {
display: inline-flex;
z-index: 1;
padding: 0 0 calc(1em / 13) calc(3em / 13);
opacity: 60%;
transition: color 100ms, opacity 100ms;
transition: color 100ms;
}
[aria-checked='true'] > #tsLabel,
[aria-checked='false'] > #jsLabel {
font-weight: 600;
opacity: 100%;
}
`;

Expand Down

0 comments on commit d3d0078

Please sign in to comment.