React-dates: Keyboard Accessibility help modal broken when only 1 month is visible

Created on 7 Apr 2017  路  8Comments  路  Source: airbnb/react-dates

bug

Most helpful comment

Also, is there a way to not show the ? button?

All 8 comments

Also, is there a way to not show the ? button?

I noticed this as well.

screen shot 2017-04-10 at 3 34 58 pm

Should we add overflow: auto to the .DayPickerKeyboardShortcuts__panel class? Or maybe don't set bottom: 0?

I found the culprit to be a line-height style issue. It was set at a fixed px number.

Also, there seems to be some clipping for .DayPickerKeyboardShortcuts__show--bottom-right?

screen shot 2017-04-10 at 4 10 55 pm

Ostensibly from this rule: border-top: 26px solid #fff. Maybe make it transparent instead?

I can create a separate issue for this if you want or create a PR.

Huzzah! Totally not surprised that these things broke (it was a very big PR) and very happy to accept PRs to fix them.

Quick stop-gap to hide the ? would be just to hide it in CSS (I think it's .DayPickerKeyboardShortcuts__show?), but yeah we should probs fix the panel. :)

We hastily patched this with .DayPickerKeyboardShortcuts__panel { position: fixed; }. Not perfect, but functional.

Ping! Sorry for the delay, but here's a PR - https://github.com/airbnb/react-dates/pull/477

Cool, thanks for addressing this 馃憤

Was this page helpful?
0 / 5 - 0 ratings