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 date picker spin button example for issue 125 #1053

Merged
merged 52 commits into from
Jul 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
926af42
initial draft
mcking65 Jun 24, 2019
7a5b03a
updated spin button date picker example to include current date in th…
jongund Jun 24, 2019
5da7f1d
Merge branch 'master' into issue125-spinbutton-datepicker-example
jongund Jun 26, 2019
87763a5
initial tests for datepicker spin button
jongund Jun 26, 2019
c118c8d
Merge branch 'issue125-spinbutton-datepicker-example' of https://gith…
jongund Jun 26, 2019
fd22cee
added aria-hidden
jongund Jun 26, 2019
cb20d29
Update datepicker-spinbuttons.js
jongund Jul 2, 2019
6720151
Update datepicker-spinbuttons.html
jongund Jul 2, 2019
b2443d2
updated initial label for the group to us 'current value'
jongund Jul 3, 2019
a69b373
fixed bug with updating hidden date
jongund Jul 3, 2019
c0f6ca2
Satisfy linter
Jul 8, 2019
1fbbedb
updated documentation for day spin button and fixed bug realted to ar…
jongund Jul 8, 2019
76fac20
updated link to provide feedback on the pull request
jongund Jul 8, 2019
084e984
Merge branch 'master' into issue125-spinbutton-datepicker-example
mcking65 Jul 9, 2019
0dad401
updated example and started to fix tests for date picker spin button …
jongund Jul 9, 2019
f3576b9
Merge branch 'issue125-spinbutton-datepicker-example' of github.com:w…
jongund Jul 9, 2019
672516f
fixed css bug with styling spin button text content
jongund Jul 10, 2019
a23bc94
fixed test for date picker spin button
jongund Jul 10, 2019
799ef6b
added test for aria-label on spin button
jongund Jul 10, 2019
497f719
updated documentation and added test for tabindex values
jongund Jul 10, 2019
76009e9
updated documentation
jongund Jul 10, 2019
08cc57d
initial draft
mcking65 Jun 24, 2019
26aa780
updated spin button date picker example to include current date in th…
jongund Jun 24, 2019
63e74a3
initial tests for datepicker spin button
jongund Jun 26, 2019
2e58d35
added aria-hidden
jongund Jun 26, 2019
ddf5bf1
Update datepicker-spinbuttons.js
jongund Jul 2, 2019
e5fb693
Update datepicker-spinbuttons.html
jongund Jul 2, 2019
92e889c
updated initial label for the group to us 'current value'
jongund Jul 3, 2019
11bcc33
fixed bug with updating hidden date
jongund Jul 3, 2019
04fb0c0
Satisfy linter
Jul 8, 2019
29b090f
updated documentation for day spin button and fixed bug realted to ar…
jongund Jul 8, 2019
71ad1fe
updated link to provide feedback on the pull request
jongund Jul 8, 2019
d3015d0
updated example and started to fix tests for date picker spin button …
jongund Jul 9, 2019
e82053e
fixed css bug with styling spin button text content
jongund Jul 10, 2019
8a7d077
fixed test for date picker spin button
jongund Jul 10, 2019
e51ae18
added test for aria-label on spin button
jongund Jul 10, 2019
9362f63
updated documentation and added test for tabindex values
jongund Jul 10, 2019
47c9415
updated documentation
jongund Jul 10, 2019
9d49279
Merge branch 'issue125-spinbutton-datepicker-example' of https://gith…
mcking65 Jul 12, 2019
c3aa070
Change title to Date Picker Spin Button Example
mcking65 Jul 12, 2019
da4c417
Remove link to PR 1053
mcking65 Jul 12, 2019
e9277d7
Editorial revisions to intro
mcking65 Jul 12, 2019
40a43d8
Add similar examples list
mcking65 Jul 12, 2019
b992623
Fix indentation of accessibility features section
mcking65 Jul 12, 2019
6a4dd0e
Editorial revisions to accessibility features section
mcking65 Jul 12, 2019
eca807c
White space: fix indentation of documentation sections
mcking65 Jul 12, 2019
9ad7df4
Change label from h3 to div and label text to choose a date
mcking65 Jul 12, 2019
0d63d2e
Additional revisions to accessibility features to clarify language.
mcking65 Jul 12, 2019
251f9f7
Editorial revisions to documentation tables
mcking65 Jul 13, 2019
585462f
Correct link in bottom nav to point to spin button design pattern
mcking65 Jul 13, 2019
05a233f
Merge branch 'master' into issue125-spinbutton-datepicker-example
mcking65 Jul 13, 2019
0423023
Fix aria-labelledby error on attributes documentation table.
mcking65 Jul 13, 2019
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
91 changes: 91 additions & 0 deletions examples/spinbutton/css/datepicker-spinbuttons.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
.datepicker-spinbuttons {
margin-top: 1em;
}

.datepicker-spinbuttons .day {
width: 2em;
}

.datepicker-spinbuttons .month {
width: 6em;
}

.datepicker-spinbuttons .year {
width: 3em;
}

.datepicker-spinbuttons .spinbutton {
float: left;
text-align: center;
}

.datepicker-spinbuttons .spinbutton:first-child {
border-left: 4px;
}

.datepicker-spinbuttons .spinbutton:last-child {
border-right: 4px;
}

.datepicker-spinbuttons .spinbutton .previous,
.datepicker-spinbuttons .spinbutton .next {
color: #666;
}

.datepicker-spinbuttons .spinbutton.focus {
outline: 2px solid #005a9c;
}

.datepicker-spinbuttons .spinbutton.focus,
.datepicker-spinbuttons .spinbutton:hover {
color: #444;
background-color: #eee;
}

.datepicker-spinbuttons .spinbutton.focus [role="spinbutton"],
.datepicker-spinbuttons .spinbutton:hover [role="spinbutton"] {
background-color: #fff;
color: black;
}

.datepicker-spinbuttons .spinbutton .previous {
border-bottom: 1px solid black;
}

.datepicker-spinbuttons .spinbutton .next {
border-top: 1px solid black;
}

.datepicker-spinbuttons .spinbutton button {
padding: 0;
margin: 0;
border: none;
background-color: transparent;
}

.datepicker-spinbuttons .spinbutton .decrease svg polygon,
.datepicker-spinbuttons .spinbutton .increase svg polygon {
fill: #333;
stroke-width: 3px;
stroke: transparent;
}

.datepicker-spinbuttons .spinbutton .decrease {
position: relative;
top: 4px;
}

.datepicker-spinbuttons .spinbutton.focus svg polygon {
fill: #005a9c;
stroke: #005a9c;
}

.datepicker-spinbuttons .spinbutton .decrease:hover svg polygon,
.datepicker-spinbuttons .spinbutton .increase:hover svg polygon {
fill: #005a9c;
stroke: #005a9c;
}

div[role="separator"] {
clear: both;
}
Loading