Skip to content

Commit

Permalink
fixed liniting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jongund committed Dec 3, 2024
1 parent 44fd199 commit f472f7a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions content/practices/high-contrast/css/switch-color-scheme.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ button.color-scheme[role="switch"] .label {
color: #242424;
}

button.color-scheme[role="switch"][aria-checked="true"] .label, button.color-scheme[role="switch"][aria-checked="true"] .on {
button.color-scheme[role="switch"][aria-checked="true"] .label,
button.color-scheme[role="switch"][aria-checked="true"] .on {
color: #fff;
}

Expand Down Expand Up @@ -89,19 +90,20 @@ button.color-scheme[role="switch"][aria-checked="true"] span.on {
display: inline-block;
}

button.color-scheme[role="switch"]:focus, button.color-scheme[role="switch"]:hover {
button.color-scheme[role="switch"]:focus,
button.color-scheme[role="switch"]:hover {
padding: 2px 2px 6px 6px;
border-width: 2px;
outline: none;
cursor: pointer;
}

button.color-scheme[role="switch"][aria-checked="true"]:focus, button.color-scheme[role="switch"][aria-checked="true"]:hover {
button.color-scheme[role="switch"][aria-checked="true"]:focus,
button.color-scheme[role="switch"][aria-checked="true"]:hover {
border-color: #add8e6;
}

@media (prefers-color-scheme: dark) {

button.color-scheme[role="switch"] {
background-color: #333;
color: #fff;
Expand Down

0 comments on commit f472f7a

Please sign in to comment.