Fix month/year dropdown layout, add minDate/maxDate - #80
Open
iamganeshkarki wants to merge 1 commit into
Open
Conversation
…support - Fix month and year dropdowns being independently toggleable, which let both stay open at once; state is now lifted to CalenderController so opening one closes the other. - Fix header row layout: prev/next icons were pushed to the popup's far edges by justify-content: space-between, ending up far from the month/year controls; now grouped together with a fixed popup width so content doesn't overflow, capped for narrow/mobile viewports. - Re-enable the year dropdown's scroll-to-selected-year behavior (was dead/commented-out code), so opening it for an old date doesn't dump you at the top of a 130-year list. - Add minDate/maxDate props (AD date strings) that disable out-of-range days and the month navigation that would lead to them. - Add keyboard support (Enter/Space to activate, Escape to close and refocus the input) and ARIA attributes across the input, month/year triggers, dropdown options, day cells, and prev/next/today controls. - Convert prev/next/today controls from non-interactive <span> to real <button> elements for native keyboard operability.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix month/year dropdown layout, add minDate/maxDate, keyboard + ARIA support