-
Notifications
You must be signed in to change notification settings - Fork 344
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
Closed
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 0e18134
improved HCM support for slider value
jongund cc899be
updated code based on Valerie's feedback
jongund 19c86cb
changed title to color viewer, so not to use the word picker
jongund 72b346a
update the name of the javascript prototype
jongund ee9fec2
updated documentation
jongund be338ec
updated documentation
jongund 36e3e3f
update button labels, added forced-color-adjust and focus styling on …
jongund 947b003
updated rgb output
jongund 1d4602f
restored rbg value
jongund 8f7f286
Merge branch 'master' into update-slider-1
jongund 677f7a5
updated focus styling for textboxes
jongund 045de77
updated to use class and update event handler names
jongund e39dd6d
added code pen code
jongund e7560e6
updated file names and test files
jongund fffca4c
updated links in other examples to point to slider-color-viewer.html
jongund ba992d9
Update examples/slider/slider-color-viewer.html
jongund 45c4d0a
Update examples/slider/slider-color-viewer.html
jongund 798e2e7
Update examples/slider/slider-color-viewer.html
jongund 60587cf
Update examples/slider/slider-color-viewer.html
jongund d56a20a
Update examples/slider/slider-color-viewer.html
jongund 934d526
Update examples/slider/slider-color-viewer.html
jongund bda8d67
Update examples/slider/slider-color-viewer.html
jongund 47cbaf9
Update examples/slider/slider-color-viewer.html
jongund 152c511
Update examples/slider/slider-color-viewer.html
jongund 94cbbd1
Update examples/slider/slider-color-viewer.html
jongund d2ab16b
Update examples/slider/slider-color-viewer.html
jongund f3b9ce9
Update examples/slider/slider-color-viewer.html
jongund af3cfd6
updated button labeling and added focusable=false
jongund 9b97568
udpated tests to include buttons
jongund 3001558
updated documentation for buttons and added test cases
jongund dac67c6
Merge branch 'master' into update-slider-1
jongund def8731
fixing linter errors
jongund 636cb87
fix a spelling error
jongund 8e92c4f
updated from master
jongund 06e895b
added a color viewer example without inc and dec buttons
jongund be4c934
Merge branch 'master' into update-slider-1
jongund 403645e
improved code and high contrast support
jongund 9017c71
updated documentation
jongund efd2314
update click and mouse move code
jongund 8e76a45
deleted mobile support version of color viewer slider example
jongund ca3898d
deleted regressiion test for mobile support version of color viewer s…
jongund 39b0fa7
updated accessibility information
jongund 69fe34a
fixed spelling error
jongund c177527
updated accessibility information
jongund 0096fe0
updated title
jongund bc9e6e1
updated slider styling for better identification of sliders in high c…
jongund File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
.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; | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.