Skip to content

Commit

Permalink
fix: colors in menu for better color contrast
Browse files Browse the repository at this point in the history
Button color set to contrast colors from the user agent injected button text color that affected accessibility in safari, and fixed color contrast for dark theme
  • Loading branch information
yashrajbharti authored Sep 18, 2024
1 parent 316901b commit c3f3370
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions live-examples/html-examples/interactive-elements/css/menu.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
.news {
background-color: black;
background-color: bisque;
padding: 1em;
border: solid thin black;

@media (prefers-color-scheme: dark) {
background-color: black;
}
}

menu {
Expand All @@ -10,4 +14,9 @@ menu {
padding: 0;
margin-bottom: 0;
gap: 1em;
}
}

button {
color: black;
background: white;
}

0 comments on commit c3f3370

Please sign in to comment.