From ca18ae72f95b878ff8645cf38eabd5a5fe51f386 Mon Sep 17 00:00:00 2001 From: Jon Gunderson Date: Thu, 30 Jan 2025 12:07:10 -0600 Subject: [PATCH] update current color example --- content/practices/high-contrast/high-contrast-practice.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/practices/high-contrast/high-contrast-practice.html b/content/practices/high-contrast/high-contrast-practice.html index 241080ff4..9f477c513 100644 --- a/content/practices/high-contrast/high-contrast-practice.html +++ b/content/practices/high-contrast/high-contrast-practice.html @@ -756,7 +756,7 @@

currentcolor Keyword

Current Color Example: Switch

-

The Button Switch Example uses currentcolor value to style the SVG rect elements used as the switch container and to indicate the on and off states. Current color applied to the stroke and fill properties of the rect elements. The following table shows how the graphical rendering changes for some high contrast options.

+

The Button Switch Example uses currentcolor value to style the SVG elements used as the switch container and to indicate the on and off states. Current color is derived from the button element (i.e. ButtonText system color) and applied to the stroke and fill properties of the circle elements. The SVG rect element has a transparent fill-opacity to show the background color of the button element (i.e. ButtonFace system color). The following table shows how the graphical rendering changes for some high contrast options.