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 7 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
143 changes: 143 additions & 0 deletions examples/slider/css/slider-1.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
/* CSS Document */

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

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

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest adding
.color-box {
forced-color-adjust: none;
}
so the color box renders the actual color even in high contrast mode.

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

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

.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-group .hc-background {
fill: white;
}

.color-group button.change circle.background {
fill: #ddd;
stroke: transparent;
stroke-width: 2px;
}

.color-group .color-slider text {
fill: currentColor;
fill-opacity: 0.8;
}

.color-group.active .color-slider text,
.color-group .color-slider:focus text,
.color-group .color-slider:hover text {
fill: currentColor;
fill-opacity: 1.0;
font: bold;
}

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

.color-group .color-slider {
margin-top: 0;
margin-bottom: 0;
height: 3em;
}

.color-group .color-slider.value {
width: 9000em;
text-align: right;
}

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

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

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

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

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

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

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

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

.color-group button.change:focus circle.background,
.color-group button.change:hover circle.background {
stroke: #005a9c;
}

.color-group.active .color-slider rect,
.color-group:hover .color-slider rect {
opacity: 1;
}

.color-group .color-slider:focus .rail,
.color-group .color-slider:hover .rail {
fill: white;
stroke: #005a9c;
opacity: 1;
}

.color-group .color-slider:focus .thumb,
.color-group .color-slider:hover .thumb {
fill: #ddd;
stroke: #005a9c;
opacity: 1;
}
59 changes: 0 additions & 59 deletions examples/slider/css/slider.css

This file was deleted.

Loading