Skip to content

Commit

Permalink
added media query for forced colors
Browse files Browse the repository at this point in the history
  • Loading branch information
jongund committed Nov 14, 2023
1 parent 0b079c9 commit 802d6e9
Showing 1 changed file with 45 additions and 9 deletions.
54 changes: 45 additions & 9 deletions content/patterns/slider/examples/css/slider-rating.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
}

.rating-slider {
color: blue;
color: #005a9c;
}

.rating-slider svg {
Expand All @@ -14,34 +14,34 @@
}

.rating-slider svg .focus-ring {
fill: linktext;
fill: currentcolor;
stroke-width: 0;
fill-opacity: 0;
}

.rating-slider svg .value {
stroke-width: 2px;
stroke: linktext;
stroke: currentcolor;
fill-opacity: 0;
}

.rating-slider svg .label {
font-size: 90%;
fill: linktext;
fill: currentcolor;
}

.rating-slider svg .description {
font-size: 90%;
fill: linktext;
fill: currentcolor;
}

.rating-slider svg .current .value {
fill: linktext;
fill: currentcolor;
fill-opacity: 1;
}

.rating-slider svg .current .label {
fill: canvas;
fill: white;
font-weight: bold;
}

Expand All @@ -54,11 +54,47 @@

.rating-slider svg .focus {
stroke-width: 0;
stroke: linktext;
stroke: currentcolor;
fill-opacity: 0;
}

.rating-slider:focus svg .focus-ring {
stroke-width: 2px;
stroke: linktext;
stroke: currentcolor;
}

@media (forced-colors: active) {
.rating-slider svg .focus-ring {
fill: linktext;

Check failure on line 68 in content/patterns/slider/examples/css/slider-rating.css

View workflow job for this annotation

GitHub Actions / spelling

Unknown word (linktext)

Check failure on line 68 in content/patterns/slider/examples/css/slider-rating.css

View workflow job for this annotation

GitHub Actions / spelling

Unknown word (linktext)
}

.rating-slider svg .value {
stroke: linktext;

Check failure on line 72 in content/patterns/slider/examples/css/slider-rating.css

View workflow job for this annotation

GitHub Actions / spelling

Unknown word (linktext)

Check failure on line 72 in content/patterns/slider/examples/css/slider-rating.css

View workflow job for this annotation

GitHub Actions / spelling

Unknown word (linktext)
}

.rating-slider svg .label {
fill: linktext;

Check failure on line 76 in content/patterns/slider/examples/css/slider-rating.css

View workflow job for this annotation

GitHub Actions / spelling

Unknown word (linktext)

Check failure on line 76 in content/patterns/slider/examples/css/slider-rating.css

View workflow job for this annotation

GitHub Actions / spelling

Unknown word (linktext)
}

.rating-slider svg .description {
fill: linktext;

Check failure on line 80 in content/patterns/slider/examples/css/slider-rating.css

View workflow job for this annotation

GitHub Actions / spelling

Unknown word (linktext)

Check failure on line 80 in content/patterns/slider/examples/css/slider-rating.css

View workflow job for this annotation

GitHub Actions / spelling

Unknown word (linktext)
}

.rating-slider svg .current .value {
fill: linktext;

Check failure on line 84 in content/patterns/slider/examples/css/slider-rating.css

View workflow job for this annotation

GitHub Actions / spelling

Unknown word (linktext)

Check failure on line 84 in content/patterns/slider/examples/css/slider-rating.css

View workflow job for this annotation

GitHub Actions / spelling

Unknown word (linktext)
}

.rating-slider svg .current .label {
fill: canvas;
}

/* focus styling */

.rating-slider svg .focus {
stroke: linktext;
}

.rating-slider:focus svg .focus-ring {
stroke: linktext;
}
}

0 comments on commit 802d6e9

Please sign in to comment.