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

Add Practice Page for Supporting Color Contrast Settings #2991

Open
wants to merge 219 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
219 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
61c0844
edited high contrast description
jongund Jan 7, 2025
c390963
added system color warning
jongund Jan 28, 2025
44221aa
added cautions
jongund Jan 28, 2025
2b77848
updated caution styling
jongund Jan 28, 2025
d2ffbfa
added caution for system colors and currentcolor keyword
jongund Jan 28, 2025
548a8fc
updated caution for system colors
jongund Jan 28, 2025
ab5f2f2
removed confusing content
jongund Jan 29, 2025
87c55ab
edited table caption
jongund Jan 29, 2025
ec5ad22
updated example for current color
jongund Jan 30, 2025
434bfb2
fixed spelling error
jongund Jan 30, 2025
ca18ae7
update current color example
jongund Jan 30, 2025
16284c1
updating guidance for current color
jongund Jan 30, 2025
22a275e
building table of color changes
jongund Feb 1, 2025
f3eed1d
added additional elements
jongund Feb 1, 2025
8cb682f
added additional elements
jongund Feb 1, 2025
143a73b
updated content
jongund Feb 3, 2025
b760c70
contrast theme images
jongund Feb 3, 2025
88066f9
update information on contrast themes
jongund Feb 3, 2025
e1a75b1
update
jongund Feb 3, 2025
92f8fdd
updated switch example using system colors
jongund Feb 3, 2025
3d7cc35
rename from high contrast to color settings
mcking65 Feb 4, 2025
9df1a82
update descriptions of settings based on last week's discussions
mcking65 Feb 4, 2025
2209c02
Update H2 text
mcking65 Feb 4, 2025
10f72a5
fix spelling
mcking65 Feb 4, 2025
b71a9e7
update file naming to use color-settings
jongund Feb 4, 2025
598d766
updated example headings
jongund Feb 4, 2025
59e3515
Merge branch 'high-contrast-practice' of github.com:w3c/aria-practice…
jongund Feb 4, 2025
560c276
updated system color switch example
jongund Feb 4, 2025
cffd6ee
Fix link and description for color settings practice
mcking65 Feb 4, 2025
4356d35
Merge branch 'high-contrast-practice' of https://github.com/w3c/aria-…
mcking65 Feb 4, 2025
bf6bfa1
editorial refinement
mcking65 Feb 4, 2025
d53f79b
do not imply "authors need" to provide support.
mcking65 Feb 4, 2025
e512891
HTML lint fix from Howard
mcking65 Feb 4, 2025
f67f91f
Fix css lint errors
howard-e Feb 4, 2025
cf23615
Updated switch current color
jongund Feb 4, 2025
17fee1f
Merge branch 'high-contrast-practice' of github.com:w3c/aria-practice…
jongund Feb 4, 2025
c71bfd8
editorial revision to practices page card
mcking65 Feb 4, 2025
c35bd5f
revise intro
mcking65 Feb 4, 2025
a0c23f9
revise descriptions
mcking65 Feb 4, 2025
ef3e44d
updated information on currentcCOlor and system colors
jongund Feb 4, 2025
6d13038
Merge branch 'high-contrast-practice' of github.com:w3c/aria-practice…
jongund Feb 4, 2025
5feb00a
updated system color table to include checkboxes
jongund Feb 4, 2025
d75b802
Editorial consistency of contrast theme practice cell in table
mcking65 Feb 4, 2025
c9f11f2
Merge branch 'high-contrast-practice' of https://github.com/w3c/aria-…
mcking65 Feb 4, 2025
68aa295
updated content
jongund Feb 5, 2025
6f5126c
updated guidance for forced-colors
jongund Feb 6, 2025
ae00ca6
updated screen shot images
jongund Feb 6, 2025
db74087
added defalt images
jongund Feb 6, 2025
20cace1
update switch using system colors
jongund Feb 6, 2025
8b9ca7a
added content related to div based switch example
jongund Feb 6, 2025
59ce1e7
updated documentation
jongund Feb 6, 2025
78ad259
updated system color guidance and screenshots
jongund Feb 7, 2025
ecda398
updated system color table
jongund Feb 10, 2025
9b6a195
updated comparison tables
jongund Feb 10, 2025
3032084
updated comparison tables
jongund Feb 10, 2025
3a41452
updated table
jongund Feb 10, 2025
2d1947a
added color theme data
jongund Feb 10, 2025
19ba803
updated switch comparison
jongund Feb 10, 2025
673703b
Fix spelling errors
mcking65 Feb 11, 2025
6a2c6aa
minor editorial change to intro
mcking65 Feb 11, 2025
7436741
editorial consistency in invert colors section
mcking65 Feb 11, 2025
9bdacf5
Editorial revisions to increased contrast section.
mcking65 Feb 11, 2025
6b36d0f
fix spelling of accent
mcking65 Feb 11, 2025
c87c108
updated switch example comparison
jongund Feb 11, 2025
3c6d36c
Merge branch 'high-contrast-practice' of github.com:w3c/aria-practice…
jongund Feb 11, 2025
7f2194a
editing labels
jongund Feb 11, 2025
b33c18c
fixing linting errors
jongund Feb 11, 2025
4352227
fixing linting errors
jongund Feb 11, 2025
710cf21
fixing linting errors
jongund Feb 11, 2025
b51c75b
fixing linting errors
jongund Feb 11, 2025
704fbd5
fixing linting errors
jongund Feb 11, 2025
7f7df0e
fixed liniting errors
jongund Feb 13, 2025
d2f5085
fixed html liniting error
jongund Feb 13, 2025
2ac8884
editorial changes to light dark media queries
jongund Feb 13, 2025
b079127
made some editorial changes to content
jongund Feb 13, 2025
e563fcc
fixed spelling error
jongund Feb 13, 2025
1c06f1f
removed unused images
jongund Feb 13, 2025
6caa220
Update content/practices/color-settings/color-settings-practice.html
jongund Feb 15, 2025
19af427
Update content/practices/color-settings/color-settings-practice.html
jongund Feb 15, 2025
7bd3859
Update content/practices/color-settings/color-settings-practice.html
jongund Feb 15, 2025
4c8e8e9
Update content/practices/color-settings/color-settings-practice.html
jongund Feb 15, 2025
d3ac180
Update content/practices/color-settings/color-settings-practice.html
jongund Feb 15, 2025
c910c6b
Update content/practices/color-settings/color-settings-practice.html
mcking65 Feb 18, 2025
71092ea
Format to support line commenting
mcking65 Feb 18, 2025
5ee90da
attempt some clarification
mcking65 Feb 18, 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
1,568 changes: 1,568 additions & 0 deletions content/practices/color-settings/color-settings-practice.html

Large diffs are not rendered by default.

101 changes: 101 additions & 0 deletions content/practices/color-settings/css/color-settings-practice.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
/* high-contrast-practices.css */

table.data caption {
margin: 0;
padding: 0;
color: rgb(0 90 106);
font-style: normal;
text-align: left;
font-size: 1.1em;
}

table.data thead th.exampleLink {
vertical-align: bottom;
}

table.data img {
border: 1px solid gray;
}

table.data tbody th,
table.data tbody td {
vertical-align: top;
}

table.data tbody td p:first-child {
margin-top: 0;
padding-top: 0;
}

table.data td div.sample {
height: 30px;
width: 50px;
border: 1px solid gray;
}

ul.system-colors {
margin: 0;
padding: 0;
}

ul.system-colors li {
margin: 0;
padding: 0;
font-family: monospace;
list-style: none;
}

ul.compact {
margin: 0;
padding: 0;
margin-left: 1em;
}

label.system-colors {
display: block;
}

img.theme {
max-width: 125px;
}

img.theme-switch-button {
max-width: 300px;
}

.color,
.font {
font-family: monospace;
}

.support-notice {
background-color: #fdefce;
border: 1px solid #fce1a4;
border-radius: 3px;
padding: 0;
overflow: unset;

--space-between-elements: 1em;
--left-right-padding: 70px;
}

.support-notice div.caution {
background-color: #fcebc3;
padding-left: 60px;
padding-top: 1em;
padding-bottom: 1em;
position: relative;
}

.support-notice div.caution::before {
width: 32px;
height: 32px;
display: block;
content: "";
background-position: center center;
background-repeat: no-repeat;
position: absolute;
left: 1em;
top: 1em;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='31' viewBox='0 0 30 31'%3E%3Cg id='Group_1' data-name='Group 1' transform='translate(-11 -292)'%3E%3Cellipse id='Ellipse_1' data-name='Ellipse 1' cx='15' cy='15.5' rx='15' ry='15.5' transform='translate(11 292)' fill='%23d9ae4d'/%3E%3Cpath id='Path_3' data-name='Path 3' d='M4.524-17.368a4.507,4.507,0,0,0-1.56.312.278.278,0,0,0-.13.286V-14.9c0,2.184.416,8.294.468,9.022a.172.172,0,0,0,.182.156h2.08c.156,0,.182-.078.182-.156.078-.78.52-6.916.52-9.1v-1.872a.326.326,0,0,0-.156-.286A5.112,5.112,0,0,0,4.524-17.368Zm0,17.576A1.7,1.7,0,0,0,6.4-1.534,1.741,1.741,0,0,0,4.524-3.328,1.77,1.77,0,0,0,2.652-1.534,1.7,1.7,0,0,0,4.524.208Z' transform='translate(22 316)' fill='%23fff'/%3E%3C/g%3E%3C/svg%3E%0A");
}
87 changes: 87 additions & 0 deletions content/practices/color-settings/css/switch-color-scheme.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
:root {
color-scheme: light dark;
}

button.color-scheme[role="switch"] {
display: block;
margin: 2px;
padding: 4px 4px 8px 8px;
border: 0 solid light-dark(#005a9c, #add8e6);
border-radius: 5px;
width: 17em;
height: 3em;
text-align: left;
background-color: light-dark(#e9e9e9, #333);
color: light-dark(#242424, #fff);
}

button.color-scheme[role="switch"] .label {
position: relative;
top: -3px;
display: inline-block;
padding: 0;
margin: 0;
width: 10em;
vertical-align: middle;
color: light-dark(#242424, #fff);
}

button.color-scheme[role="switch"] svg {
display: inline-block;
width: 36px;
height: 20px;
position: relative;
top: 4px;
}

button.color-scheme[role="switch"] svg rect {
fill: light-dark(#a1a1a1, #36c);
stroke-width: 2;
stroke: light-dark(#757575, #36c);
}

button.color-scheme[role="switch"] svg circle.off {
display: block;
stroke: light-dark(#757575, #fff);
fill: light-dark(#fff, #fff);
fill-opacity: 1;
}

button.color-scheme[role="switch"] svg circle.on {
display: none;
}

button.color-scheme[role="switch"][aria-checked="true"] svg circle.off {
display: none;
}

button.color-scheme[role="switch"][aria-checked="true"] svg circle.on {
display: block;
stroke: #fff;
fill: #fff;
fill-opacity: 1;
}

button.color-scheme[role="switch"] span.off {
display: inline-block;
}

button.color-scheme[role="switch"] span.on {
display: none;
}

button.color-scheme[role="switch"][aria-checked="true"] span.off {
display: none;
}

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 {
padding: 2px 2px 6px 6px;
border-width: 2px;
outline: none;
cursor: pointer;
}
112 changes: 112 additions & 0 deletions content/practices/color-settings/css/switch-current-color.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
button.current-color[role="switch"] {
display: block;
margin: 2px;
padding: 4px 4px 8px 8px;
border: 0 solid #005a9c;
border-radius: 5px;
width: 17em;
height: 3em;
text-align: left;
background-color: white;
color: black;
}

button.current-color[role="switch"] .label {
position: relative;
top: -3px;
display: inline-block;
padding: 0;
margin: 0;
width: 10em;
vertical-align: middle;
color: black;
}

button.current-color[role="switch"] svg {
display: inline-block;
width: 36px;
height: 20px;
forced-color-adjust: auto;
position: relative;
top: 4px;
}

button.current-color[role="switch"] svg rect {
fill-opacity: 0;
stroke-width: 2;
stroke: #005a9c;
}

button.current-color[role="switch"] svg circle.off {
display: block;
stroke: #005a9c;
fill: #005a9c;
fill-opacity: 1;
}

button.current-color[role="switch"][aria-checked="true"] svg circle.off {
display: none;
}

button.current-color[role="switch"] svg circle.on {
display: none;
}

button.current-color[role="switch"][aria-checked="true"] svg circle.on {
color: green;
display: block;
stroke-color: #005a9c;
fill: #005a9c;
fill-opacity: 1;
}

button.current-color[role="switch"] span.off {
display: inline-block;
}

button.current-color[role="switch"] span.on {
display: none;
}

button.current-color[role="switch"][aria-checked="true"] span.off {
display: none;
}

button.current-color[role="switch"][aria-checked="true"] span.on {
display: inline-block;
}

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

@media (forced-colors: active) {
button.current-color[role="switch"] .label {
color: currentcolor;
}

button.current-color[role="switch"] svg rect {
stroke: currentcolor;
}

button.current-color[role="switch"] svg circle.off {
stroke: currentcolor;
fill: currentcolor;
}

button.current-color[role="switch"][aria-checked="true"] svg circle.on {
stroke-color: currentcolor;
fill: currentcolor;
}

button.current-color[role="switch"]:focus svg,
button.current-color[role="switch"]:hover svg {
background-color: inherit;
color: currentcolor;
}
}
Loading
Loading