Address some issues introduced by the a11y PR#477
Conversation
lencioni
left a comment
There was a problem hiding this comment.
Sorry this took so long!
I don't think you need to apologize. You are doing a great job!
| .DayPickerKeyboardShortcuts__show { | ||
| width: 22px; | ||
| position: absolute; | ||
| z-index: 2; |
There was a problem hiding this comment.
Why 2 here? Can this be based off of a variable to make the dependency more explicit?
6212751 to
eaf361a
Compare
|
@majapw Great work, thank you.
What is the name of the |
|
|
ljharb
left a comment
There was a problem hiding this comment.
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:
enableOutsideDayswas having some weirdness with using the keyboard to transition months. This has been fixed.to: @airbnb/webinfra