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 combobox date picker example for issue 34 #1017

Merged
merged 156 commits into from
May 26, 2020
Merged
Show file tree
Hide file tree
Changes from 51 commits
Commits
Show all changes
156 commits
Select commit Hold shift + click to select a range
5d16101
Add Initial Cut of Date Picker Example (pull #839)
jongund Dec 4, 2018
c725a87
Date Picker Example: Add link to development issue
mcking65 Dec 4, 2018
92756d5
Merge branch 'master' into issue34-date-picker-examples
jongund Dec 9, 2018
621cb78
updated datepicker example and documentation
jongund Dec 10, 2018
81c1419
fixed broken reference
jongund Dec 10, 2018
bfde962
made updates to the documentation
jongund Dec 10, 2018
60e13a5
made updates to the documentation
jongund Dec 10, 2018
46c8f82
made updates to the documentation
jongund Dec 10, 2018
bbe5d1e
made updated code
jongund Dec 11, 2018
d90147f
updated example
jongund Dec 14, 2018
7b076d6
updated code
jongund Dec 14, 2018
4412af2
fixed problem with document clicks when date picker is open
jongund Dec 14, 2018
a15d38f
fixed problem with document clicks when date picker is open
jongund Dec 14, 2018
cc61f58
updated month year title
jongund Dec 14, 2018
78f4cd8
improved source code documentation
jongund Dec 14, 2018
e9c0343
Merge branch 'master' into issue34-date-picker-examples
mcking65 Feb 4, 2019
e48ffb6
focus returns to textbox and added Home and End key commands for firs…
jongund Feb 5, 2019
f0b9f04
edited description of example
jongund Feb 5, 2019
6445f29
updated documentation
jongund Feb 5, 2019
88de7de
updated documentation
jongund Feb 5, 2019
df65352
updated documentation
jongund Feb 5, 2019
c72fed0
fixed some bugs
jongund Feb 5, 2019
1c291ca
fixed some bugs
jongund Feb 5, 2019
eef22a4
removed some debugging code
jongund Feb 5, 2019
4c083c2
validated js and css code
jongund Feb 7, 2019
0097ce7
fixed bug
jongund Feb 7, 2019
5b43f50
added two regression tests
jongund Feb 7, 2019
65b29c5
Merge branch 'master' into issue34-date-picker-examples
mcking65 Feb 27, 2019
18a8131
Merge branch 'master' into issue34-date-picker-examples
jongund Mar 2, 2019
4b53015
updated keyboard behavior for opeing the datepicker
jongund Mar 3, 2019
5c067de
updated date picker example to support keyboard announcements
jongund Mar 3, 2019
4fbce10
updated date picker example to support keyboard announcements
jongund Mar 3, 2019
8ce71fc
updated date picker example to support keyboard announcements
jongund Mar 3, 2019
9317fd1
added down arrow key
jongund Mar 3, 2019
cd20e9e
fixe bug with onclick
jongund Mar 4, 2019
e6273a1
updated click event on date to put date in textbox and close dialog
jongund Mar 22, 2019
a37a2a6
down arrow appears on input focus
jongund Mar 22, 2019
b1442cf
updated click behaviors for input and calendar button
jongund Mar 22, 2019
567cb53
updated datepicker document click event to handle clicking in textbox
jongund Mar 22, 2019
c8ca443
updated datepicker document click event to handle clicking in textbox
jongund Mar 22, 2019
09c7af4
updated code for down arrow in textbox
jongund Apr 8, 2019
2c7b9b4
updated example CSS
jongund Apr 8, 2019
cc402dc
updated code for down arrow in textbox
jongund Apr 8, 2019
2727aa2
Merge branch 'master' into issue34-date-picker-examples
mcking65 Apr 26, 2019
2041e0f
fixed bug with document click event for dialog
jongund Apr 29, 2019
f43761a
fixed interation bugs and added accessibilty feature description
jongund May 2, 2019
759d72b
Merge branch 'issue34-date-picker-examples' of github.com:w3c/aria-pr…
jongund May 2, 2019
482d0e6
updated documentation, fied bugs and added a menu button date picker
jongund May 2, 2019
bf7a423
fixing mouse interaction issues
jongund May 7, 2019
d8ceabb
fixed mouse bugs with date picker example
jongund May 20, 2019
af7c584
cleaning up some of the code
jongund May 20, 2019
c0bcb07
Merge branch 'master' into issue34-date-picker-examples
mcking65 May 24, 2019
9562920
Merge branch 'master' into issue34-date-picker-examples
mcking65 Jun 14, 2019
c2a68d7
added feature to move to the next or previosu month when clicking on …
jongund Jun 18, 2019
95112c8
changed header cells from using aria-label to abbr attribute
jongund Jun 18, 2019
4796461
fixed bugs with buttons for changing the next/previous year and month…
jongund Jun 18, 2019
395aa57
fixed bug with next/previous buttons when focus is in the textbox
jongund Jun 18, 2019
6305c1c
created intial example of menu button for opening date picker
jongund Jun 18, 2019
30a09ae
added a file to support spin buttons
jongund Jun 19, 2019
f2043c7
initial implementation of a datepicker using spin buttons
jongund Jun 20, 2019
21483cb
added documenation about values wrapping for day and month
jongund Jun 20, 2019
0c63e6a
added documenation about values wrapping for day and month
jongund Jun 20, 2019
893b419
button label is updated with current date information
jongund Jun 21, 2019
4f0cf66
button label is updated with current date information for combobox to…
jongund Jun 21, 2019
47bfdf9
Merge branch 'master' into issue34-date-picker-examples
mcking65 Jun 24, 2019
b16c673
Move spinbutton and combobox examples
mcking65 Jun 24, 2019
1fc2bd3
Remove files copied to new issue1046-datepicker-dialog branch
mcking65 Jun 25, 2019
3fe4d87
Merge branch 'master' into issue34-date-picker-examples
jongund Jul 6, 2019
1d88594
updating example to be compatible with date gird used in dialog date …
jongund Jul 6, 2019
f7de313
fixed css bug
jongund Jul 7, 2019
d3c189a
added message live region to dialog
jongund Jul 7, 2019
290527e
fixed some bugs related to messages
jongund Jul 7, 2019
a0f8a33
updated documentation on live regions
jongund Jul 7, 2019
6ffda7f
updated regression test file for noew location of example and added a…
jongund Jul 8, 2019
86b6f1f
removed aria-controls from buttons in the dialog to change the month/…
jongund Jul 9, 2019
fb62dab
test commit
jongund Jul 14, 2019
4789537
test commit 2
jongund Jul 14, 2019
01c09ae
Merge branch 'master' into issue34-date-picker-examples
jongund Jul 15, 2019
7b5afeb
updated date picker code to use the Date object like the datepicker d…
jongund Jul 15, 2019
fdc4af7
improved code by adding helper functions and removing a redundant fun…
jongund Jul 15, 2019
c8495c3
updated file name to be consistent wih other examples
jongund Jul 15, 2019
1d3bd0b
restored previous file name for compatibility with ava testing
jongund Jul 15, 2019
8e73ffc
improved code readibility by using helper function to test if same month
jongund Jul 15, 2019
6692954
removed some unused variables
jongund Jul 15, 2019
8c37976
removed unused properties and used helper function to compare days
jongund Jul 16, 2019
2aa02e0
updated docuemntation and added ids for developing regression tests
jongund Jul 17, 2019
ac18697
started integration of dialog box regression tests
jongund Jul 17, 2019
4f2833f
button label now updates with the selected date information
jongund Jul 17, 2019
71a3a77
updated link to provide feedback to point to th epull request
jongund Jul 17, 2019
f9336db
removed aria-expanded from button
jongund Jul 17, 2019
7c5e605
updated method names to be more consistent and descriptive
jongund Jul 17, 2019
b70e1d3
updated documentation
jongund Jul 17, 2019
823f8ab
updated documentation
jongund Jul 17, 2019
227f096
updated documentation
jongund Jul 17, 2019
5c81da2
updated documentation
jongund Jul 17, 2019
5bd7f92
updated properties to move role and arai-expanded to input box, chang…
jongund Aug 6, 2019
fd3d38d
updated some of the tests
jongund Aug 6, 2019
27a67db
updated tests and fixe a tabindex bug
jongund Aug 6, 2019
b8b3e05
removed some unused code
jongund Aug 7, 2019
6482198
removed unused functions
jongund Aug 8, 2019
f44ab9f
updated CSS for hding disabled dates
jongund Aug 8, 2019
80233ec
Merge branch 'master' into issue34-date-picker-examples
jongund Aug 26, 2019
6d812ba
fixed data-date attribute computation
jongund Aug 26, 2019
f706a74
fixed html validation bugs
jongund Aug 28, 2019
35920eb
fixed some bugs
jongund Sep 3, 2019
3bf4b53
restored
jongund Sep 4, 2019
3a9e534
restored
jongund Sep 4, 2019
0d3a1dc
restored
jongund Sep 4, 2019
14c0074
updated test cases
jongund Sep 30, 2019
27f3194
Change version in title and footer from 1.1 to 1.2
mcking65 Oct 24, 2019
934303f
fixed conflicts
jongund Nov 23, 2019
87ba195
Merge branch 'master' into issue34-date-picker-examples
jongund Jan 21, 2020
3c4fa2d
changes file name
jongund Jan 22, 2020
5ded52b
Merge branch 'master' into issue34-date-picker-examples
jongund Feb 20, 2020
74ec738
updated code
jongund Mar 2, 2020
92c5f5b
fixed bug with last row being shown
jongund Mar 2, 2020
154be9d
added updating button label based on selected date
jongund Mar 2, 2020
0b84168
This test is no longer needed
jongund Mar 2, 2020
f0a002a
changed design to remove buttons from gridcells
jongund Mar 3, 2020
20a6e43
Added role gridcell to support validator bug for not recognizig `td` …
jongund Mar 4, 2020
33093a5
improved high contrast of combobox buton svg image
jongund Mar 4, 2020
1bc4ef4
Merge branch 'issue34-date-picker-examples' of https://github.com/w3c…
jongund Mar 4, 2020
6a46301
added role=groidcell to pass html validator
jongund Mar 4, 2020
e2fea32
fixed bug with aria-selected
jongund Mar 4, 2020
3bdfa5c
fixed bug with aria-select following focus
jongund Mar 17, 2020
59165f9
separated space and enter behavior and fixed bug with focus on combob…
jongund Mar 24, 2020
88a5014
Updated links to source files
jongund Mar 31, 2020
f86ac1b
Fixed broken link
jongund Mar 31, 2020
6fce281
updated tests and added keyboard event for button
jongund Mar 31, 2020
0e13f4c
updated test using the SPACE key
jongund Apr 1, 2020
98ff5d9
updated focus styling
jongund Apr 3, 2020
ff5ff75
Apply editorial suggestions from code review by @carmacleod
mcking65 Apr 14, 2020
45dab81
updated focus styling to use solid borders
jongund Apr 22, 2020
488743a
updated styling of date with tabindex=0
jongund Apr 22, 2020
4b4abbf
updated regression tests coverage to inlcude missing tests
jongund Apr 23, 2020
16f12c8
removed reference to undefined object
jongund Apr 23, 2020
8e02906
Add missing data-test-id for tabindex=-1
zcorpan Apr 29, 2020
2cedd8b
Add test for month-year-button-space-return
zcorpan Apr 29, 2020
56cdd3d
removed code to update button with the current date
jongund Apr 29, 2020
9334ee7
Fix an assertion in the month-year-button-space-return test
zcorpan Apr 30, 2020
c7fcea4
Use await where appropriate
zcorpan Apr 30, 2020
ef3827e
fixed regression test to use Key.SPACE instead of space character
jongund Apr 30, 2020
afea1c6
made improvements to high contrast support
jongund May 5, 2020
a6b6a57
updating regression tests
jongund May 5, 2020
0637ef7
Merge branch 'master' into issue34-date-picker-examples
jongund May 5, 2020
181b3ea
updated regression test to use queryElements and remove t.plan, but g…
jongund May 5, 2020
7a09c2b
Merge branch 'master' into issue34-date-picker-examples
jongund May 6, 2020
c5b1375
updated documentation on high contrast support
jongund May 6, 2020
070ec8b
updated documentation on high contrast support
jongund May 6, 2020
ba4819f
updated documentation on high contrast support
jongund May 6, 2020
a59a11d
updated documentation on high contrast support
jongund May 6, 2020
c52f7e0
Merge branch 'master' into issue34-date-picker-examples
zcorpan May 14, 2020
d034aae
Fix tests to use queryElements correctly
zcorpan May 14, 2020
77433bb
Fix spelling errors caught by npm run lint:spelling
zcorpan May 14, 2020
aac3da0
Add stubs for missing tests
zcorpan May 15, 2020
135b328
removed code for an unused live region for a combobox message
jongund May 26, 2020
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
207 changes: 207 additions & 0 deletions examples/datepicker/css/datepicker.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,207 @@
.datepicker {
margin-top: 1em;
}


.datepicker button.icon {
border-style: none;
text-align: left;
background-color: white;
position: relative;
left: -25px;
top: 3px;
}

.datepicker span.arrow {
margin: 0;
padding: 0;
display: none;
background: transparent;
}

.datepicker span.arrow svg polygon {
stroke: gray;
stroke-width: 1px;
fill: gray;
}

.datepicker[aria-expanded=false] span.arrow.up {
display: inline-block;
position: relative;
left: -23px;
}

.datepicker[aria-expanded=true] span.arrow.down {
display: inline-block;
position: relative;
left: -23px;
}

.datepicker input {
margin: 0;
width: 20%;
}

.datepickerDialog {
width: 45%;
clear: both;
display: none;
border: 3px solid hsl(216, 80%, 55%);
margin-top: 1em;
border-radius: 5px;
padding: 0;
background-color: #FFF;
}

.header {
cursor: default;
background-color: hsl(216, 80%, 55%);
padding: 7px;
font-weight: bold;
text-transform: uppercase;
color: white;
display: flex;
justify-content: space-around;
}

.header span {
display: inline-block;
}

.header button {
border-style: none;
background: transparent;
}

.datepickerDialog button::-moz-focus-inner {
border: 0;
}

.prevYear,
.prevMonth,
.nextMonth,
.nextYear {
padding: 4px;
width: 24px;
height: 24px;
color: white;
}

.prevYear:focus,
.prevMonth:focus,
.nextMonth:focus,
.nextYear:focus {
padding: 2px;
border: 2px solid white;
border-radius: 4px;
outline: 0;
}

.dialogButtonGroup {
text-align: right;
margin-top: 1em;
margin-bottom: 1em;
margin-right: 1em;
}

.dialogButton {
padding: 5px;
margin-left: 1em;
width: 5em;
background-color: hsl(216, 80%, 92%);
font-size: 0.85em;
color: black;
outline: none;
border: 1px solid hsl(216, 80%, 92%);
border-radius: 5px;
}

.dialogButton:focus {
padding: 4px;
border: 2px solid black;
}

.fa-calendar-alt {
color: hsl(216, 89%, 72%);
}

.datepicker .monthYear {
display: inline-block;
width: 12em;
text-align: center;
}

table.dates {
width: 100%;
padding-left: 1em;
padding-right: 1em;
padding-top: 1em;
}

table.dates th,
table.dates td {
text-align: center;
}

.dateRow {
border: 1px solid black;
}

.dateCell {
outline: 0;
border: 0;
padding: 0;
margin: 0;
height: 40px;
width: 40px;
}

.dateButton {
padding: 0;
margin: 0;
line-height: inherit;
height: 100%;
width: 100%;
border: 1px solid #eee;
border-radius: 5px;
font-size: 15px;
background: #eee;
}

.dateButton:focus,
.dateButton:hover {
padding: 0;
background-color: hsl(216, 80%, 92%);
}

.dateButton:focus {
border-width: 2px;
border-color: rgb(100, 100, 100);
outline: 0;
}

.dateButton[aria-selected] {
border-color: rgb(100, 100, 100);
}

.dateButton[tabindex="0"] {
background-color: hsl(216, 80%, 92%);
}

.disabled {
cursor: not-allowed;
color: #afafaf;
}

.dateButton:disabled {
color: #777;
background-color: #fff;
border: none;
cursor: not-allowed;
}

.datepicker .message {
position: absolute;
top: -30em;
left: -300em;
}
Loading