Skip to content

DatePicker: fix separator logic#642

Merged
mkernohanbc merged 4 commits intomainfrom
bug/date-picker-separator
Mar 11, 2026
Merged

DatePicker: fix separator logic#642
mkernohanbc merged 4 commits intomainfrom
bug/date-picker-separator

Conversation

@mkernohanbc
Copy link
Copy Markdown
Contributor

This PR does two things:

  1. 8b5565d fixes a bug in DatePicker, so that the separator between the format helper text and the description field is only shown when both elements are present
  2. b84fda5 moves the styling of this separator element (based on RA Separator) into a new component, so it can be consumed by other components as needed

Previous behaviour, for reference:
Screenshot 2026-03-02 at 8 58 17 AM

@mkernohanbc mkernohanbc added this to the Components v0.7.0 milestone Mar 2, 2026
@mkernohanbc mkernohanbc self-assigned this Mar 2, 2026
@mkernohanbc mkernohanbc added the Components Changes or issues affect the design-system-react-components package label Mar 2, 2026
@mkernohanbc mkernohanbc requested a review from ty2k March 2, 2026 18:58
Copy link
Copy Markdown
Contributor

@ty2k ty2k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet! The old CSS from .bcds-react-aria-DatePicker--Separator can be removed, and then this is good to merge.

Comment thread packages/react-components/src/components/DatePicker/DatePicker.tsx
Comment thread packages/react-components/src/stories/Separator.mdx
@mkernohanbc mkernohanbc requested a review from ty2k March 10, 2026 16:12
Copy link
Copy Markdown
Contributor

@ty2k ty2k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🏎️ 🏁

@mkernohanbc mkernohanbc merged commit b82399b into main Mar 11, 2026
5 checks passed
@mkernohanbc mkernohanbc deleted the bug/date-picker-separator branch March 11, 2026 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Components Changes or issues affect the design-system-react-components package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants