-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Address some issues introduced by the a11y PR #477
Conversation
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.
Sorry this took so long!
I don't think you need to apologize. You are doing a great job!
css/DayPickerKeyboardShortcuts.scss
Outdated
@@ -17,10 +17,11 @@ | |||
.DayPickerKeyboardShortcuts__show { | |||
width: 22px; | |||
position: absolute; | |||
z-index: 2; |
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.
Why 2 here? Can this be based off of a variable to make the dependency more explicit?
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.
good idea!
6212751
to
eaf361a
Compare
@majapw Great work, thank you.
What is the name of the |
|
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.
I'm a very strong -1 for hiding the explanatory shortcut panel when shortcuts still work - I think if they work, the explanation needs to be easily reachable, otherwise people might accidentally type something and have no idea why it triggered a change.
@ljharb while I believe we should provide a reasonable default option for explaining the keyboard shortcuts (which we do, with the panel), I think that because we are providing a tool for developers to integrate into their own products, we should allow for them to customize how they decide to convey this information to their users, whether it is embedded on the page directly, in a modal separate from the datepicker completely, or something I haven't yet considered. We should not force developers to use our solution, and that is why I added the My first recommendation would still be to use css overrides to style the panel to fit your use case, but I want to provide an option to do your own thing as well. This is why I think this prop makes a lot of sense. |
I'm still not a fan of hiding the shortcut panel, but after some offline discussion with @majapw I'm definitely not a blocker. |
eaf361a
to
bf6fa0e
Compare
bf6fa0e
to
e301ced
Compare
Aw! I came too late! :( Shouldn't README be updated too with the newly added |
Sorry this took so long! This should address issues raised in #427.
Namely, a handful of things happen in this PR:
enableOutsideDays
was having some weirdness with using the keyboard to transition months. This has been fixed.to: @airbnb/webinfra