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 Example Update (slider-1) #1472

Closed
wants to merge 47 commits into from
Closed
Show file tree
Hide file tree
Changes from 40 commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
afc761e
updated slider-1 example code
jongund Jul 27, 2020
0e18134
improved HCM support for slider value
jongund Sep 1, 2020
cc899be
updated code based on Valerie's feedback
jongund Sep 3, 2020
19c86cb
changed title to color viewer, so not to use the word picker
jongund Sep 3, 2020
72b346a
update the name of the javascript prototype
jongund Sep 3, 2020
ee9fec2
updated documentation
jongund Sep 3, 2020
be338ec
updated documentation
jongund Sep 3, 2020
36e3e3f
update button labels, added forced-color-adjust and focus styling on …
jongund Sep 15, 2020
947b003
updated rgb output
jongund Sep 15, 2020
1d4602f
restored rbg value
jongund Sep 15, 2020
8f7f286
Merge branch 'master' into update-slider-1
jongund Sep 16, 2020
677f7a5
updated focus styling for textboxes
jongund Sep 16, 2020
045de77
updated to use class and update event handler names
jongund Oct 25, 2020
e39dd6d
added code pen code
jongund Oct 26, 2020
e7560e6
updated file names and test files
jongund Oct 26, 2020
fffca4c
updated links in other examples to point to slider-color-viewer.html
jongund Oct 26, 2020
ba992d9
Update examples/slider/slider-color-viewer.html
jongund Nov 6, 2020
45c4d0a
Update examples/slider/slider-color-viewer.html
jongund Nov 6, 2020
798e2e7
Update examples/slider/slider-color-viewer.html
jongund Nov 6, 2020
60587cf
Update examples/slider/slider-color-viewer.html
jongund Nov 6, 2020
d56a20a
Update examples/slider/slider-color-viewer.html
jongund Nov 6, 2020
934d526
Update examples/slider/slider-color-viewer.html
jongund Nov 6, 2020
bda8d67
Update examples/slider/slider-color-viewer.html
jongund Nov 6, 2020
47cbaf9
Update examples/slider/slider-color-viewer.html
jongund Nov 6, 2020
152c511
Update examples/slider/slider-color-viewer.html
jongund Nov 6, 2020
94cbbd1
Update examples/slider/slider-color-viewer.html
jongund Nov 6, 2020
d2ab16b
Update examples/slider/slider-color-viewer.html
jongund Nov 6, 2020
f3b9ce9
Update examples/slider/slider-color-viewer.html
jongund Nov 6, 2020
af3cfd6
updated button labeling and added focusable=false
jongund Nov 6, 2020
9b97568
udpated tests to include buttons
jongund Nov 6, 2020
3001558
updated documentation for buttons and added test cases
jongund Nov 9, 2020
dac67c6
Merge branch 'master' into update-slider-1
jongund Nov 9, 2020
def8731
fixing linter errors
jongund Nov 9, 2020
636cb87
fix a spelling error
jongund Nov 9, 2020
8e92c4f
updated from master
jongund Dec 9, 2020
06e895b
added a color viewer example without inc and dec buttons
jongund Dec 9, 2020
be4c934
Merge branch 'master' into update-slider-1
jongund Dec 31, 2020
403645e
improved code and high contrast support
jongund Jan 7, 2021
9017c71
updated documentation
jongund Jan 7, 2021
efd2314
update click and mouse move code
jongund Jan 8, 2021
8e76a45
deleted mobile support version of color viewer slider example
jongund Jan 12, 2021
ca3898d
deleted regressiion test for mobile support version of color viewer s…
jongund Jan 12, 2021
39b0fa7
updated accessibility information
jongund Jan 13, 2021
69fe34a
fixed spelling error
jongund Jan 13, 2021
c177527
updated accessibility information
jongund Jan 14, 2021
0096fe0
updated title
jongund Jan 14, 2021
bc9e6e1
updated slider styling for better identification of sliders in high c…
jongund Jan 26, 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
18 changes: 14 additions & 4 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ <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-mobile.html">Color Viewer Slider Using SVG with Mobile Support</a></li>
<li><a href="slider/slider-color-viewer.html">Color Viewer Slider Using SVG</a></li>
<li><a href="spinbutton/datepicker-spinbuttons.html">Date Picker Spin Button</a></li>
<li><a href="treeview/treeview-2/treeview-2a.html">Navigation Treeview Using Computed Properties</a></li>
<li><a href="treeview/treeview-2/treeview-2b.html">Navigation Treeview Using Declared Properties</a></li>
Expand Down Expand Up @@ -285,8 +287,9 @@ <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-mobile.html">Color Viewer Slider Using SVG with Mobile Support</a></li>
<li><a href="slider/slider-color-viewer.html">Color Viewer Slider Using SVG</a></li>
</ul>
</td>
</tr>
Expand Down Expand Up @@ -563,6 +566,8 @@ <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-mobile.html">Color Viewer Slider Using SVG with Mobile Support</a></li>
<li><a href="slider/slider-color-viewer.html">Color Viewer Slider Using SVG</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 @@ -599,6 +604,8 @@ <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-mobile.html">Color Viewer Slider Using SVG with Mobile Support</a></li>
<li><a href="slider/slider-color-viewer.html">Color Viewer Slider Using SVG</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 @@ -741,8 +748,9 @@ <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-mobile.html">Color Viewer Slider Using SVG with Mobile Support</a></li>
<li><a href="slider/slider-color-viewer.html">Color Viewer Slider Using SVG</a></li>
<li><a href="spinbutton/datepicker-spinbuttons.html">Date Picker Spin Button</a></li>
</ul>
</td>
Expand All @@ -753,8 +761,9 @@ <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-mobile.html">Color Viewer Slider Using SVG with Mobile Support</a></li>
<li><a href="slider/slider-color-viewer.html">Color Viewer Slider Using SVG</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 @@ -766,8 +775,9 @@ <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-mobile.html">Color Viewer Slider Using SVG with Mobile Support</a></li>
<li><a href="slider/slider-color-viewer.html">Color Viewer Slider Using SVG</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
161 changes: 161 additions & 0 deletions examples/slider/css/slider-color-viewer.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
/* CSS Document */

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

.color-box-sliders .label {
margin-top: 0;
margin-bottom: 1 em;
}

.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-group {
padding: 4px;
color: #005a9c;
width: 490px;
}

.color-group > button,
.color-group > div {
display: inline;
}

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

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

.color-group .color-slider {
margin: 0;
padding: 0;
}

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

.color-group .color-slider .rail {
fill: #bbb;
stroke: transparent;
stroke-width: 2px;
opacity: 0.5;
}

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

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

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

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

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

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

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

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

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

.color-group .color-slider:focus .focus,
.color-group .color-slider:hover .focus {
stroke: currentColor;
}

.color-group button.dec10,
.color-group button.dec,
.color-group button.inc,
.color-group button.inc10 {
padding: 0;
margin: 0;
border: none;
background: none;
color: currentColor;
}

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

.color-group button line,
.color-group button .background {
fill: transparent;
stroke: currentColor;
stroke-width: 2px;
}

.color-group button line {
stroke: currentColor;
stroke-width: 2px;
}

.color-group button:focus,
.color-group .color-slider:focus {
outline: none;
}

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

This file was deleted.

Loading