Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update/skipto5.7.2 Instant scrolling, number of headings and landmarks and about option #3210

Closed
wants to merge 135 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
135 commits
Select commit Hold shift + click to select a range
f13138e
Create starter page for high contrast practice.
mcking65 Apr 15, 2024
2aa2cff
updated high-conrast
jongund May 19, 2024
1e1a46e
update high contrast
jongund May 20, 2024
6be229a
updated hc practice
jongund May 20, 2024
6a48dca
added screen shots
jongund May 20, 2024
262cb8c
updated high contrast
jongund May 20, 2024
5615d1a
updated images
jongund May 20, 2024
f22bd34
updated high contrast
jongund May 21, 2024
192ba9b
creasted a temporary test page for system colors
jongund May 21, 2024
585de4d
udpated test page
jongund May 21, 2024
17f1481
update high contrast
jongund May 21, 2024
e276315
fixed linting error
jongund May 21, 2024
9888761
fixing linting errors
jongund May 21, 2024
f1babd7
fixing linting errors
jongund May 21, 2024
1a46146
fixing linting errors
jongund May 21, 2024
6ef309d
fixing linting errors
jongund May 21, 2024
65db7a8
fixing linting errors
jongund May 21, 2024
bdc3703
added some images
jongund May 21, 2024
11f080a
added images
jongund May 21, 2024
089f114
updated image references
jongund May 21, 2024
dc9045f
initial drati of high contrast practice
jongund May 22, 2024
5b217ce
added system colors table
jongund May 22, 2024
c18a8eb
updated color calc to support rgba values
jongund May 22, 2024
11fa5aa
updated sample cell to use backgorund color
jongund May 22, 2024
43c3089
udpated sample styling
jongund May 23, 2024
cc4e6f0
removed unused directory
jongund Jun 5, 2024
3772e35
added color description to system color table
jongund Jun 6, 2024
58c8461
fixed linting errors
jongund Jun 6, 2024
282e45d
fixed linting errors
jongund Jun 6, 2024
de2a7ac
fixed linting errors
jongund Jun 6, 2024
764061a
fixed linting errors
jongund Jun 6, 2024
2d423a0
fixed linting errors
jongund Jun 6, 2024
438ce61
fixed linting errors
jongund Jun 7, 2024
d262c7e
fixed linting errors
jongund Jun 7, 2024
f7c43f4
fixed linting errors
jongund Jun 7, 2024
8214beb
fixed linting errors
jongund Jun 7, 2024
ff1bdda
fixed linting errors
jongund Jun 7, 2024
c7d97ee
fixed linting errors
jongund Jun 7, 2024
0a729fb
fixed linting errors
jongund Jun 7, 2024
39a9f32
change system color table
jongund Jun 7, 2024
ca4c17b
updated links in testing
jongund Jun 10, 2024
a756270
fixed link
jongund Jun 10, 2024
bf0327e
updated intro
jongund Jun 10, 2024
a0c7063
updated intro
jongund Jun 10, 2024
063f221
updated intro
jongund Jun 11, 2024
4241863
updating testing
jongund Jun 11, 2024
d07dc26
updating testing
jongund Jun 11, 2024
bca805f
updating testing
jongund Jun 11, 2024
3b8a09b
added test page for contrast settings
jongund Jun 17, 2024
6516e91
moved test content
jongund Jun 18, 2024
f50b91a
udpated content
jongund Jun 18, 2024
0cd64aa
updated test page
jongund Jun 18, 2024
bb95302
updated test page
jongund Jun 19, 2024
57f8129
updated test page
jongund Jun 19, 2024
1418217
updated practices
jongund Jun 21, 2024
fb31974
updated practice
jongund Jun 21, 2024
25d9091
fixed spelling errors
jongund Jun 21, 2024
05f3a9a
updated tables
jongund Jun 21, 2024
905d420
linting issue with link
jongund Jun 23, 2024
622695e
updated information on color contrsdt options
jongund Jul 16, 2024
f6a1f65
updated information on user styling options
jongund Jul 19, 2024
6635543
updated descriptions
jongund Jul 19, 2024
582410e
fixed bug in computed color calculation
jongund Sep 3, 2024
4ea9ba5
updated system color table
jongund Sep 9, 2024
fd022f3
fixed bug
jongund Sep 9, 2024
a37b1bd
fixed bug
jongund Sep 9, 2024
a799c6f
Merge remote-tracking branch 'origin/main' into high-contrast-practice
mcking65 Sep 20, 2024
ae502f9
Merge branch 'main' into high-contrast-practice
jongund Oct 8, 2024
5329201
updated
jongund Oct 16, 2024
a4b8d01
Merge branch 'main' into high-contrast-practice
jongund Oct 17, 2024
fdb7459
editing practice
jongund Oct 17, 2024
f1c0bc1
updated content
jongund Oct 29, 2024
293b5be
fixed html linting bug
jongund Oct 29, 2024
78dbb01
fixed html bugs
jongund Oct 29, 2024
f13c18f
fix formatting
ariellalgilmore Oct 29, 2024
e9e7050
fix css linter issues
ariellalgilmore Oct 29, 2024
e443b28
testing push
jongund Oct 29, 2024
6f1fcee
testing push
jongund Oct 29, 2024
63dd6b9
updated css to remove diff info
jongund Oct 30, 2024
4228d10
Editorial revisions to intro
mcking65 Nov 3, 2024
b74d674
Link to WCAG min contrast requirement
mcking65 Nov 3, 2024
7a17372
More editorial revisions to intro
mcking65 Nov 3, 2024
dab664c
Editorial revisions to summary of operating system features.
mcking65 Nov 4, 2024
b2aa183
Satisfy HTML linter
mcking65 Nov 4, 2024
7ba8548
Consistency: change 'invert color setting' to 'invert colors setting'…
mcking65 Nov 4, 2024
0cf8008
Add tile to practices page
mcking65 Nov 4, 2024
210d77e
Editorial revisions to invert colors section
mcking65 Nov 4, 2024
3a815b8
updated caption styling and documentation for increase contrast example
jongund Nov 5, 2024
cf3612e
Merge branch 'high-contrast-practice' of github.com:w3c/aria-practice…
jongund Nov 5, 2024
68f23b3
added links to table of high contrast options
jongund Nov 6, 2024
40d5c43
added new color scheme example
jongund Nov 6, 2024
9b8760b
updated headings for color scheme
jongund Nov 6, 2024
5805beb
updated headings and example labels
jongund Nov 6, 2024
fdf05a7
added links for Linux/GNOME contrast options
jongund Nov 7, 2024
b03fac4
Updated SVG vs. bit-mapped section
jongund Nov 7, 2024
3ea722a
some minor edting of content and getting caption color to match previ…
jongund Nov 8, 2024
e6d953b
updated svg summary table
jongund Nov 9, 2024
b711a44
updated section on chrome media query emulation features
jongund Nov 9, 2024
e0e9d7a
updated svg vs bit-mapped table
jongund Nov 12, 2024
eb1810c
fixing linting errors
jongund Dec 3, 2024
15e5e00
fixing linting errors
jongund Dec 3, 2024
ae1e6d1
fixing linting errors
jongund Dec 3, 2024
4835e61
fixed linting errors
jongund Dec 3, 2024
401129c
fixed linting errors
jongund Dec 3, 2024
265bff9
fixed linting issue
jongund Dec 3, 2024
c137604
fixed linting issue
jongund Dec 3, 2024
92efea3
fixed linting issue
jongund Dec 3, 2024
d7d1979
fixed liniting errors
jongund Dec 3, 2024
44fd199
fixed liniting errors
jongund Dec 3, 2024
f472f7a
fixed liniting errors
jongund Dec 3, 2024
4537434
fixed liniting errors
jongund Dec 3, 2024
5720724
Run npm run fix to address remaining lint errors
howard-e Dec 3, 2024
1d5c947
Update content/practices/high-contrast/high-contrast-practice.html
jongund Dec 10, 2024
53dbe60
Update content/practices/high-contrast/high-contrast-practice.html
jongund Dec 10, 2024
7da0456
Update content/practices/high-contrast/high-contrast-practice.html
jongund Dec 10, 2024
cf65fbc
Update content/practices/high-contrast/high-contrast-practice.html
jongund Dec 10, 2024
fe01022
Update content/practices/high-contrast/high-contrast-practice.html
jongund Dec 10, 2024
2b4dd4a
Update content/practices/high-contrast/high-contrast-practice.html
jongund Dec 10, 2024
affb5bd
updated section on bit-mapped image to include the possibility of fil…
jongund Dec 10, 2024
aef3bc3
updated switch examples
jongund Dec 10, 2024
13e55f2
fixed liniting bug
jongund Dec 10, 2024
e759904
fixed liniting bug
jongund Dec 10, 2024
4420165
updated switch example labels
jongund Dec 10, 2024
d9370d6
emphiszed actual colors in system color section
jongund Dec 10, 2024
329dad2
updated summary table for bit-mapped vs SVG images
jongund Dec 10, 2024
13be613
editorial changes in increase contrast section
mcking65 Dec 12, 2024
5c138d0
editorial changes to increase contrast testing section
mcking65 Dec 12, 2024
bfec9e2
improve description of increase contrast
mcking65 Dec 12, 2024
0f36b9b
editorial revisions to dark mode testing
mcking65 Dec 12, 2024
32f05de
editorial revisions to dark mode example section
mcking65 Dec 12, 2024
43b2309
More editorial revisions to dark mode example section
mcking65 Dec 12, 2024
be84f63
updated switch example to use light-dark function
jongund Jan 7, 2025
284aff4
updated switch example to use light-dark function
jongund Jan 7, 2025
49ff329
editorial changes to color scheme description
jongund Jan 7, 2025
d13645f
updated skipto.js to version 5.7.2
jongund Jan 7, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
initial drati of high contrast practice
  • Loading branch information
jongund committed May 22, 2024
commit dc9045f6ee30884bb3773857a99f47e11e1db1c7
18 changes: 11 additions & 7 deletions content/practices/high-contrast/high-contrast-practice.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<script src="../../shared/js/highlight.pack.js"></script>
<script src="../../shared/js/app.js"></script>
<script data-skipto="colorTheme:aria; displayOption:popup; containerElement:div" src="../../shared/js/skipto.js"></script>
<style type="text/css">

Check warning on line 15 in content/practices/high-contrast/high-contrast-practice.html

View workflow job for this annotation

GitHub Actions / lint-html

The “type” attribute for the “style” element is not needed and should be omitted.

Check warning on line 15 in content/practices/high-contrast/high-contrast-practice.html

View workflow job for this annotation

GitHub Actions / lint-html

The “type” attribute for the “style” element is not needed and should be omitted.
table.data img {
border: 1px solid gray;
}
Expand All @@ -36,15 +36,15 @@
<ol>
<li>Using SVG graphics to create components whose rendering can adapt operating system color settings.</li>
<li>Using <code>currentcolor</code> value for inheriting the <code>color</code> property value of ancestors.</li>
<li>Setting the <code>forced-colors-adjust=auto</code> CSS property to SVG elements.</li>
<li>Setting the <code>forced-colors-adjust=auto</code> CSS property on SVG elements.</li>
<li>Using the <code>forced-colors</code> CSS media query for high contrast settings.</li>
<li>Using <code>&lt;system-colors&gt;</code> CSS data types for consistency with the rendering of other components in high contrast settings.</li>
</ol>
</section>

<section id="os-high-contrast">
<h2>Operating System Color and High Contrast Settings</h2>
<p>Mobile, tablet and desktop operating systems have accessibility features for users to change the colors used to render content, including the colors used to render content from web browsers. The features are found in the accessibility settings of the operating system. The following table highlights the major high contrast features in selected operating systems.
<p>Mobile, tablet and desktop operating systems have accessibility features for users to change the colors used to render content, including the rendering ot content from web browsers. The features are found in the accessibility settings of the operating system. The following table highlights the major high contrast features in selected operating systems.
</p>

<h3 id="os-hc-features">Operating System High Contrast Features</h3>
Expand Down Expand Up @@ -112,22 +112,22 @@
<section id="svg">
<h2>SVG for Components</h2>

<p>Bit-mapped images (e.g. .png, .jpeg) should not be used for components, since their rendering cannot be changed based on user color theme and/or high contrast settings. SVG graphics can respond to the <code>forced-colors</code> CSS media query and supports the use of <code>currentcolor</code> value for color properties. An additional advantage of SVG graphics is the smooth scaling of the graphics as the size of content adjusted using browser zoom features. </p>
<p>Bit-mapped images (e.g. .png, .jpeg) should not be used for components, since their rendering cannot be changed based on user color theme and/or high contrast settings. SVG graphics can respond to the <code>forced-colors</code> CSS media query and supports the use of <code>currentcolor</code> value for color properties. An additional advantage of SVG graphics is the smooth scaling of the graphics as the size of content adjusted using browser zoom features. SVG elements can also adapt to a wide variety of screen sizes and load faster due to their smaller size than equivalent bit-mapped images.</p>

<p>Note: Be sure to include <code>forced-color-adjust=auto</code> CSS property to SVG elements, due to inconsistencies in browser setting the value to <code>auto</code>.</p>
<p>Note: Be sure to include <code>forced-color-adjust=auto</code> CSS property on SVG elements, due to inconsistencies in browsers setting the default value to <code>auto</code>.</p>

</section>

<section id="currentcolor">
<h2><code>currentcolor</code> Keyword</h2>

<p>The <code>currentcolor</code> keyword provides a means for components to use the color value of ancestor elements to set the color properties of elements. When the user chooses a high contrast setting the browser changes the <code>color</code> and <code>background-color</code> values of text content. The <code>currentcolor</code> value inherits the text color value for use in setting other CSS color properties including: <code>border</code> and <code>outline</code> on HTML elements, and <code>stroke</code> and <code>fill</code> properties on SVG elements. Note: There is no equivalent value for using the background color, so when using this technique it is important for the background of the element to be transparent to allow the background color to be visible. </p>
<p>The <code>currentcolor</code> keyword provides a means for components to use the color value of ancestors to set the color properties of an element. When the user chooses a high contrast setting the browser changes the <code>color</code> and <code>background-color</code> values of text content. The <code>currentcolor</code> value is set to the text color for use in setting the color of other properties including: <code>border</code> and <code>outline</code> on HTML elements, and <code>stroke</code> and <code>fill</code> properties on SVG elements. Note: There is no equivalent value for using the background color, so when using this technique it is important for the background of the element to be transparent to allow the background color to be visible. </p>

<p>Using <code>currentcolor</code> is the most popular technique in the ARIA APG examples for supporting user theme and high contrast settings.</p>

<h3 id="currentcolot-example">Button Switch Example</h3>

<p>The <a href="../../patterns/switch/examples/switch-button.html">Button Switch Example</a> uses <code>currentcolor</code> value to style the SVG <code>rect</code> elements used as the switch container and to indicate the on and off states. Current color is used for the <code>stroke</code> and <code>fill</code> properties of the <code>text</code> elements. The following table shows how the graphical rendering changes for some high contrast options. </p>
<p>The <a href="../../patterns/switch/examples/switch-button.html">Button Switch Example</a> uses <code>currentcolor</code> value to style the SVG <code>rect</code> elements used as the switch container and to indicate the on and off states. Current color applied to the <code>stroke</code> and <code>fill</code> properties of the <code>rect</code> elements. The following table shows how the graphical rendering changes for some high contrast options. </p>

<h4 id="currentcolor-example-screenshots">Button Switch Example with Selected High Contrast User Settings</h4>
<table aria-labelledby="currentcolor-example-screenshots" class="data">
Expand Down Expand Up @@ -183,7 +183,11 @@
<section id="forced-colors">
<h2><code>forced-colors</code> Media Query</h2>

<p>The <code>forced-colors</code> CSS media query provides a means for components to use the color preferences of people with visual impairments. When the user chooses a high contrast setting in their operating system, browsers set <code>forced-colors</code> property to <code>active</code>. CSS media queries change component colors to use operating system specified values using <code>&lt;system-colors&gt;</code> CSS data types. The advantage of using <code>forced-colors</code> over <code>currentcolor</code> is the ability to set a background color and to uniquely define colors for borders, outlines and text content.</p>
<p>The <code>forced-colors</code> CSS media query provides a means for components to use the color preferences of people with visual impairments. When the user chooses a high contrast setting in their operating system, browsers set <code>forced-colors</code> property to <code>active</code>. CSS media queries can change component colors to use operating system specified values using <code>&lt;system-colors&gt;</code> CSS data types. The advantage of using <code>forced-colors</code> over <code>currentcolor</code> is the ability to set a background color and to uniquely define colors for borders, outlines and text content.</p>

<h3 id="forced-colors-example">Rating Slider Example</h3>

<p>The <a href="../../patterns/slider/examples/slider-rating.html">Rating Slider Example</a> uses CSS <code>forced-colors: active</code> media query to change the styling of SVG elements used for the rating scale, thumb and labels. The <code>buttontext</code> system color value is used for <code>stroke</code> and <code>fill</code> properties of the range and thumb elements and <code>canvas</code> system color is used for the label elements (e.g. "Extremely Unsatisfied" and "Extremely Satisfied"). The following table shows how the graphical rendering changes for some high contrast options. </p>

<h4 id="forced-colors-example-screenshots">Rating Slider Example with Selected High Contrast User Settings</h4>
<table aria-labelledby="forced-colors-example-screenshots" class="data">
Expand Down
Loading