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

Color Viewer Slider: Improve high contrast support, touch AT support, and APG code quality guidelines support #1746

Merged
merged 28 commits into from
Mar 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
e364e5e
updated color viewer example
jongund Feb 2, 2021
70ad0cf
added caution
jongund Feb 2, 2021
9e9ad4f
removed unneeded regression tests
jongund Feb 2, 2021
4c54fe1
updated warning
jongund Feb 2, 2021
56411d3
updated warning
jongund Feb 2, 2021
43a7c8e
added touch-action property to CSS
jongund Feb 2, 2021
0bfb301
updated touch-action property to CSS
jongund Feb 2, 2021
494e915
update selector for touch-action property
jongund Feb 2, 2021
d456e82
updated pointer move event handler
jongund Feb 3, 2021
8802197
fixed linting bug
jongund Feb 3, 2021
b511e2a
updated pointer up event
jongund Feb 3, 2021
b126144
updated code for value limit and completed test for blue slider
jongund Feb 16, 2021
0a65730
added meta tag
jongund Feb 18, 2021
3a6da47
removed outer focus ring and updated accessibility documentation
jongund Feb 24, 2021
3090648
updated documentation
jongund Feb 24, 2021
45787f0
updated documentation
jongund Feb 24, 2021
aaa85e9
updated labelling CSS for improved visual layout
jongund Feb 24, 2021
4881be5
added documentation about using inline SVG
jongund Feb 25, 2021
3cb8eba
Revise warning at top of page
mcking65 Mar 1, 2021
16f1749
Editorial revisions to accessibility features documentation
mcking65 Mar 1, 2021
de2694a
Adjust heading levels inside example so they fit the page hierarchy
mcking65 Mar 1, 2021
3f2f1c1
editorial revision to group role documentation
mcking65 Mar 1, 2021
0e549cc
Editorial revision to group label documentation
mcking65 Mar 1, 2021
1387e45
Editorial revision to slider role documentation
mcking65 Mar 1, 2021
4d2a216
Replace q tag with quote char inside code tags
mcking65 Mar 1, 2021
63f5898
Fix version in footer
mcking65 Mar 1, 2021
18b8510
Minor revision to group label documentation for consistency
mcking65 Mar 1, 2021
8e0e77d
Editorial revision to SVG inline note per discussion in Mar 2 meeting.
mcking65 Mar 3, 2021
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
11 changes: 7 additions & 4 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ <h2 id="examples_by_role_label">Examples by Role</h2>
<li><a href="carousel/carousel-1-prev-next.html">Auto-Rotating Image Carousel with Buttons for Slide Control</a></li>
<li><a href="checkbox/checkbox-1/checkbox-1.html">Checkbox (Two State)</a></li>
<li><a href="menubar/menubar-editor.html">Editor Menubar</a></li>
<li><a href="slider/slider-color-viewer.html">Color Viewer Slider</a></li>
<li><a href="spinbutton/datepicker-spinbuttons.html">Date Picker Spin Button</a></li>
<li><a href="treeview/treeview-navigation.html">Navigation Treeview</a></li>
</ul>
Expand Down Expand Up @@ -299,8 +300,8 @@ <h2 id="examples_by_role_label">Examples by Role</h2>
<td>
<ul>
<li><a href="slider/multithumb-slider.html">Horizontal Multi-Thumb Slider</a></li>
<li><a href="slider/slider-1.html">Horizontal Slider</a></li>
<li><a href="slider/slider-2.html">Slider with aria-orientation and aria-valuetext</a></li>
<li><a href="slider/slider-color-viewer.html">Color Viewer Slider</a></li>
</ul>
</td>
</tr>
Expand Down Expand Up @@ -579,6 +580,7 @@ <h2 id="examples_by_props_label">Examples By Properties and States</h2>
<li><a href="menubar/menubar-navigation.html">Navigation Menubar</a></li>
<li><a href="radio/radio-activedescendant.html">Radio Group Using aria-activedescendant</a></li>
<li><a href="radio/radio.html">Radio Group Using Roving tabindex</a></li>
<li><a href="slider/slider-color-viewer.html">Color Viewer Slider</a></li>
<li><a href="spinbutton/datepicker-spinbuttons.html">Date Picker Spin Button</a></li>
<li><a href="table/table.html">Table</a></li>
<li><a href="tabs/tabs-1/tabs.html">Tabs with Automatic Activation</a></li>
Expand Down Expand Up @@ -614,6 +616,7 @@ <h2 id="examples_by_props_label">Examples By Properties and States</h2>
<li><a href="menu-button/menu-button-links.html">Navigation Menu Button</a></li>
<li><a href="radio/radio-activedescendant.html">Radio Group Using aria-activedescendant</a></li>
<li><a href="radio/radio.html">Radio Group Using Roving tabindex</a></li>
<li><a href="slider/slider-color-viewer.html">Color Viewer Slider</a></li>
<li><a href="spinbutton/datepicker-spinbuttons.html">Date Picker Spin Button</a></li>
<li><a href="tabs/tabs-1/tabs.html">Tabs with Automatic Activation</a></li>
<li><a href="tabs/tabs-2/tabs.html">Tabs with Manual Activation</a></li>
Expand Down Expand Up @@ -756,8 +759,8 @@ <h2 id="examples_by_props_label">Examples By Properties and States</h2>
<ul>
<li><a href="meter/meter.html">Meter</a></li>
<li><a href="slider/multithumb-slider.html">Horizontal Multi-Thumb Slider</a></li>
<li><a href="slider/slider-1.html">Horizontal Slider</a></li>
<li><a href="slider/slider-2.html">Slider with aria-orientation and aria-valuetext</a></li>
<li><a href="slider/slider-color-viewer.html">Color Viewer Slider</a></li>
<li><a href="spinbutton/datepicker-spinbuttons.html">Date Picker Spin Button</a></li>
</ul>
</td>
Expand All @@ -768,8 +771,8 @@ <h2 id="examples_by_props_label">Examples By Properties and States</h2>
<ul>
<li><a href="meter/meter.html">Meter</a></li>
<li><a href="slider/multithumb-slider.html">Horizontal Multi-Thumb Slider</a></li>
<li><a href="slider/slider-1.html">Horizontal Slider</a></li>
<li><a href="slider/slider-2.html">Slider with aria-orientation and aria-valuetext</a></li>
<li><a href="slider/slider-color-viewer.html">Color Viewer Slider</a></li>
<li><a href="spinbutton/datepicker-spinbuttons.html">Date Picker Spin Button</a></li>
<li><a href="toolbar/toolbar.html">Toolbar</a></li>
</ul>
Expand All @@ -781,8 +784,8 @@ <h2 id="examples_by_props_label">Examples By Properties and States</h2>
<ul>
<li><a href="meter/meter.html">Meter</a></li>
<li><a href="slider/multithumb-slider.html">Horizontal Multi-Thumb Slider</a></li>
<li><a href="slider/slider-1.html">Horizontal Slider</a></li>
<li><a href="slider/slider-2.html">Slider with aria-orientation and aria-valuetext</a></li>
<li><a href="slider/slider-color-viewer.html">Color Viewer Slider</a></li>
<li><a href="spinbutton/datepicker-spinbuttons.html">Date Picker Spin Button</a></li>
<li><a href="toolbar/toolbar.html">Toolbar</a></li>
</ul>
Expand Down
120 changes: 120 additions & 0 deletions examples/slider/css/slider-color-viewer.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
/* CSS Document */

.color-viewer-sliders label {
display: block;
}

.color-viewer-sliders .color-box {
width: 200px;
height: 200px;
border: black solid medium;
text-align: center;
padding: 0.25em;
forced-color-adjust: none;
}

.color-viewer-sliders .color-info {
padding-top: 5px;
}

.color-viewer-sliders .color-info label {
margin-top: 0.25em;
display: block;
}

.color-slider {
margin: 0;
margin-bottom: 1em;
padding: 2px;
touch-action: pan-y;
width: 350px;
outline: none;
}

.color-slider div,
.color-slider svg {
display: block;
width: 350px;
}

.color-slider-label {
margin: 0;
padding: 0;
font-weight: bold;
}

.color-slider .value {
color: currentColor;
fill: currentColor;
}

.color-slider .valueBackground {
fill: white;
stroke-width: 0;
}

.color-slider .rail {
fill: #bbb;
stroke: currentColor;
stroke-width: 2px;
opacity: 0.8;
}

.color-slider .fill {
stroke-width: 0;
opacity: 0.5;
pointer-events: none;
}

.color-slider.red .fill {
fill: red;
}

.color-slider.green .fill {
fill: green;
}

.color-slider.blue .fill {
fill: blue;
}

.color-slider .thumb {
fill: #666;
stroke: currentColor;
stroke-width: 2px;
}

.color-slider .focus {
fill: transparent;
stroke: transparent;
stroke-width: 2px;
}

.color-slider:focus .value,
.color-slider:hover .value {
font-weight: bold;
}

.color-slider:focus .fill,
.color-slider:hover .fill {
opacity: 1;
}

.color-slider:focus .rail,
.color-slider:hover .rail {
fill: transparent;
stroke: currentColor;
opacity: 1;
}

.color-slider:focus .thumb,
.color-slider:hover .thumb {
fill: #ddd;
stroke: currentColor;
opacity: 1;
}

.color-slider:focus .focus,
.color-slider:hover .focus {
stroke: currentColor;
}
59 changes: 0 additions & 59 deletions examples/slider/css/slider.css

This file was deleted.

Loading