Skip to content

Commit

Permalink
testing push
Browse files Browse the repository at this point in the history
  • Loading branch information
jongund committed Oct 29, 2024
2 parents e443b28 + e9e7050 commit 6f1fcee
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
54 changes: 27 additions & 27 deletions content/practices/high-contrast/css/switch-increase-contrast.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,8 @@ button[role="switch"] {
}

button[role="switch"][aria-checked="true"] {
background-color: #eeeeee;
color: #000000;
}

button[role="switch"][aria-checked="true"] .label {
color: #242424;
background-color: #eee;
color: #000;
}

button[role="switch"] .label {
Expand All @@ -31,6 +27,10 @@ button[role="switch"] .label {
color: #242424;
}

button[role="switch"][aria-checked="true"] .label {
color: #242424;
}

button[role="switch"] svg {
display: inline-block;
width: 36px;
Expand All @@ -48,7 +48,7 @@ button[role="switch"] svg rect {
button[role="switch"] svg circle.off {
display: block;
stroke: #757575;
fill: #ffffff;
fill: #fff;
fill-opacity: 1;
}

Expand All @@ -68,7 +68,7 @@ button[role="switch"][aria-checked="true"] svg circle.off {
button[role="switch"][aria-checked="true"] svg circle.on {
display: block;
stroke: #061d3a;
fill: #ffffff;
fill: #fff;
fill-opacity: 1;
}

Expand Down Expand Up @@ -96,27 +96,27 @@ button[role="switch"]:hover {
cursor: pointer;
}

@media (prefers-contrast: more) {

button[role="switch"] {
background-color: #eeeeee;
color: #000000;
}

button[role="switch"] .label {
color: #000000;
}
@media (prefers-contrast: more) {
button[role="switch"] {
background-color: #eee;
color: #000;
}
<<<<<<< HEAD
=======

button[role="switch"] svg rect {
fill: #0051A4;
stroke: #061d3a;
}
button[role="switch"] .label {
color: #000;
}

button[role="switch"] svg circle.off,
button[role="switch"] svg circle.on {
stroke: #061d3a;
fill: #ffffff;
}
button[role="switch"] svg rect {
fill: #0051a4;
stroke: #061d3a;
}

button[role="switch"] svg circle.off,
button[role="switch"] svg circle.on {
stroke: #061d3a;
fill: #fff;
}
>>>>>>> e9e705052c3d1ac25282c32dacde9436612ed5f5

Check failure on line 121 in content/practices/high-contrast/css/switch-increase-contrast.css

View workflow job for this annotation

GitHub Actions / lint-css

Stylelint problem

Unknown word (CssSyntaxError)

Check failure on line 121 in content/practices/high-contrast/css/switch-increase-contrast.css

View workflow job for this annotation

GitHub Actions / lint-css

Stylelint problem

Unknown word (CssSyntaxError)
}
6 changes: 3 additions & 3 deletions content/practices/high-contrast/js/high-contrast-practice.js
Original file line number Diff line number Diff line change
Expand Up @@ -783,9 +783,9 @@ function rgb2Hex(rgb) {
return 'transparent';
}

let r = Math.round((parseInt(rgb[0]) * a) + (255 * (1 - a))).toString(16),
g = Math.round((parseInt(rgb[1]) * a) + (255 * (1 - a))).toString(16),
b = Math.round((parseInt(rgb[2]) * a) + (255 * (1 - a))).toString(16);
let r = Math.round(parseInt(rgb[0]) * a + 255 * (1 - a)).toString(16),
g = Math.round(parseInt(rgb[1]) * a + 255 * (1 - a)).toString(16),
b = Math.round(parseInt(rgb[2]) * a + 255 * (1 - a)).toString(16);

if (r.length == 1) {
r = '0' + r;
Expand Down

0 comments on commit 6f1fcee

Please sign in to comment.