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

[a11y] Open picker by space/enter click #1266

Merged
merged 4 commits into from
Aug 17, 2019

Conversation

dmtrKovalenko
Copy link
Member

This PR closes #1059 and resolves #1231
Also contains all changes from, so fixes #1253

Description

Open picker by space/enter click

@dmtrKovalenko dmtrKovalenko changed the title Open picker by space/enter click [a11y] Open picker by space/enter click Aug 17, 2019
@TrySound
Copy link
Contributor

Wait, enter? You sure about this? Enter is used to send forms. Isn't it the case?

@dmtrKovalenko
Copy link
Member Author

dmtrKovalenko commented Aug 17, 2019

@TrySound yeah you are right, but it should also open the interactive controls? Shouldn't it? Yeah, but actually we can left only space

@cypress
Copy link

cypress bot commented Aug 17, 2019



Test summary

50 0 0 0


Run details

Project material-ui-pickers
Status Passed
Commit 1045e32
Started Aug 17, 2019 4:40 PM
Ended Aug 17, 2019 4:43 PM
Duration 02:09 💡
OS Linux Debian - 8.11
Browser Electron 61

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@TrySound
Copy link
Contributor

Mixing behaviours is confusing IMO

@codecov
Copy link

codecov bot commented Aug 17, 2019

Codecov Report

Merging #1266 into next will increase coverage by 0.11%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff            @@
##            next    #1266      +/-   ##
=========================================
+ Coverage   93.9%   94.01%   +0.11%     
=========================================
  Files         55       56       +1     
  Lines       1345     1420      +75     
  Branches     198      201       +3     
=========================================
+ Hits        1263     1335      +72     
- Misses        64       67       +3     
  Partials      18       18
Impacted Files Coverage Δ
lib/src/wrappers/Wrapper.tsx 87.5% <ø> (ø) ⬆️
lib/src/views/Calendar/Calendar.tsx 86.06% <100%> (+0.23%) ⬆️
lib/src/_shared/KeyboardDateInput.tsx 100% <100%> (ø) ⬆️
lib/src/_shared/hooks/usePickerState.ts 88.88% <100%> (ø) ⬆️
lib/src/_shared/PureDateInput.tsx 82.35% <25%> (-17.65%) ⬇️
lib/src/_shared/hooks/useKeyDown.ts 66.66% <66.66%> (-1.76%) ⬇️
lib/src/TimePicker/TimePicker.tsx 87.5% <0%> (-1.98%) ⬇️
lib/src/DateTimePicker/DateTimePicker.tsx 88.88% <0%> (-1.59%) ⬇️
lib/src/wrappers/InlineWrapper.tsx 100% <0%> (ø) ⬆️
lib/src/Picker/Picker.tsx 100% <0%> (ø) ⬆️
... and 6 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 142cb5f...1045e32. Read the comment docs.

@TrySound
Copy link
Contributor

Only space :)

@dmtrKovalenko dmtrKovalenko merged commit f8a4b63 into next Aug 17, 2019
@dmtrKovalenko dmtrKovalenko deleted the chore/open-picker-by-keydown branch August 17, 2019 18:02
kizzetipong added a commit to kizzetipong/material-ui-thai-datepickers that referenced this pull request Aug 30, 2019
* newdev: (671 commits)
  Re-implement based from v3.2.4 - fix issue yyyy case sensitive / unexpected TODO from year selector
  v3.2.4
  Restore support of lib instnace (mui#1281)
  Fix ts error and formik example (mui#1280)
  v3.2.3
  Update patrons list
  Add mention of renamed `moment` property (mui#1268)
  [a11y] Open picker by space click (mui#1266)
  Do not allow input any chars when value is nul (mui#1265)
  Dispatch onChange before onClose (mui#1264)
  Refactor wrapping <Picker /> in state to be 1 component (mui#1263)
  [InlineWrapper]: Don't force any width on the paper (mui#1248) (mui#1261)
  Remove direct `@material-ui/core` imports. (mui#1252)
  [docs] Fix typo in date-fns localization title
  Fix direct @material-ui/core imports (mui#1236)
  Update prop-types.json
  Ovveride keyboard datepicker onChange date type
  [docs] Show DateIOType instead of anys  (mui#1228)
  Update release script
  v3.2.2
  ...

# Conflicts:
#	README.md
#	docs/src/Examples/Demo/DatePicker/BasicDatePicker.jsx
#	docs/src/Examples/Demo/DatePicker/InlineDatePicker.jsx
#	docs/src/Examples/Demo/DateTimePicker/BasicDateTimePicker.jsx
#	docs/src/Examples/Demo/DateTimePicker/InlineDateTimePicker.jsx
#	lib/package.json
#	lib/src/DatePicker/DatePicker.jsx
#	lib/src/DatePicker/DatePickerInline.jsx
#	lib/src/DatePicker/DatePickerModal.jsx
#	lib/src/DatePicker/components/Calendar.jsx
#	lib/src/DatePicker/components/CalendarHeader.jsx
#	lib/src/DatePicker/components/YearSelection.jsx
#	lib/src/DateTimePicker/DateTimePicker.jsx
#	lib/src/DateTimePicker/DateTimePickerInline.jsx
#	lib/src/DateTimePicker/DateTimePickerModal.jsx
#	lib/src/DateTimePicker/components/DateTimePickerHeader.jsx
#	lib/src/_shared/DateTextField.jsx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants