Repository navigation
Conversation
Contributor
Author
|
tl;dr
The Chrome frames below show the opening at 390 px before ( |
This branch has not been deployed
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.

tl;dr
mode="single", one activation selects the day and updates the trigger, summary, and announcement.DateRangeshape still work.Selection contract
Both
DateRangePickerandDateRangePickerDropdownacceptmode="single". Controlled values, default values, and presets readfrom. Selection reports that day as bothfromandto. Clear reportsnull.The first activation completes the selection. An open dropdown closes on selection when
closeOnSelectis set. The single-date status region stays mounted in the picker root, outside the panel. Its text remains available after close. After close, focus is on the trigger, which displays the new date.The single-date footer keeps Clear and omits the built-in selection text. Custom compositions can pass children to
DateRangePickerSelectionor supply their own footer. Date bounds and disabled dates apply to day buttons and presets. Presets with the same start date represent the same selection in single mode. The controlled selection retains its object identity when only the visible month changes. Omittingmodeor forwardingundefinedkeeps the two-step range flow. Switching modes clears the previous selection instructions. Existing range-only translation dictionaries still type-check, and single-date labels have English defaults.Verification
Base
c0a936f59eb767e263c0e81b93dd323511dc9b6b. Verified revision147601b0418b11474f19eeee926f4b4708813f0b. The change includes the preview, component documentation, changelog, and accessibility cases. The date audit confirmed that only Date Range Picker needed an updated date. Its registry description now includes single-date selection.bun run checkpassed, including 122 registry entries and message validation. Biome reported 15 warnings and two infos outside the changed files.bun testpassed all 222 accessibility tests. The new cases cover one selected grid cell and a status region that survives dropdown close.DateRangePickerMessages.closeOnSelectremain unverified.Before and after
Choose November 5 from the November 4 default. The base shows both dates on the trigger. Single mode shows November 5 and keeps only Clear in the footer. Captured in Chrome on November 19, 2026, at base
c0a936fand head147601b.Compact calendar opening
Below 640 px, the whole calendar fades in together. Chrome and headless WebKit detected zero clipped footer frames at 320, 360, and 390 px after this change. iPhone Simulator Safari passed touch selection and close. The comparison shows
147601bandf0da86eat 390 px.Test plan
/components/motion/date-range-pickerand choose an enabled day in the single-date example. The popover closes and the trigger shows one date.bun run checkandbun test.