Skip to content

Conversation

@giuliana-gladeye
Copy link
Collaborator

Linear ticket:
Normalize DateRangePicker width across layouts

To normalize the appearance of the Date Range Picker across different layouts, a minimum width of 16rem is applied. This helps ensure consistency and alignment regardless of the surrounding container size.

@Shrinks99 Shrinks99 changed the title feat: added minimun width to date range picker component fix: DatePicker icon overlap Jan 14, 2026
@Shrinks99
Copy link
Member

Shrinks99 commented Jan 14, 2026

I think we went about this with the wrong fix. I've reverted the minimum width and instead applied the calendar icon and close button in the prefix and suffix slots of the button.

Screenshot 2026-01-14 at 12 41 44 AM

Ultimately, using a button for this is the wrong component, it should be a field with an icon button to enable the date picker. Will make an issue for this and fix another time, until then these fixes should work. The component should also specify a range or single date for the user to pick as well as options for limiting the pickable dates / ranges. These should also use the ISO date format of YYYY-MM-DD — something we should standardize everywhere. Always more to do! 🙃

EDIT: Actually all of the above are features of the default input component?? Why aren't we using that?

@Shrinks99 Shrinks99 merged commit 92916e6 into main Jan 14, 2026
1 check passed
@Shrinks99 Shrinks99 deleted the DEV-1213/normalize-daterangepicker-width-across-layouts branch January 14, 2026 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants