Add accessible custom#338
Merged
greatest0fallt1me merged 2 commits intoJun 29, 2026
Merged
Conversation
- Implemented custom accessible date range picker in src/components/DateRangePicker.tsx. - Integrated the new picker into src/ApiUsage.tsx. - Fixed missing imports and duplicated code in src/ApiUsage.tsx. - Added unit tests for DateRangePicker. - Improved test environment by mocking window.matchMedia and fixing pre-existing issues in CodeExample.tsx and schema-validate.ts. Co-authored-by: gloskull <189399494+gloskull@users.noreply.github.com>
…5790579442 Add accessible custom range picker for ApiUsage
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.
This PR adds a custom, accessible date range picker to the ApiUsage page, replacing browser-native date inputs.
Key changes:
Created src/components/DateRangePicker.tsx with preset options and a keyboard-accessible calendar grid.
Cleaned up src/ApiUsage.tsx to fix missing imports and syntax errors.
Added comprehensive tests for the new component.
Standardized the test environment in src/setupTests.ts and vitest.config.ts.
Fixed pre-existing issues in src/components/CodeExample.tsx and src/utils/schema-validate.ts that were causing test failures.
Closes #282