Skip to content

Conversation

@driskull
Copy link
Member

@driskull driskull commented Feb 12, 2026

Related Issue: #13914

Summary

fixes the scale property handling for month header navigation actions in the date-picker component. Previously, the navigation buttons (next/prev month) were forced to use either "l" or "m" scale regardless of the parent's scale, which has been corrected to inherit the scale directly.

@driskull driskull added the pr ready for visual snapshots Adding this label will run visual snapshot testing. label Feb 12, 2026
@driskull driskull requested a review from Copilot February 12, 2026 00:49
@github-actions github-actions bot added the bug Bug reports for broken functionality. Issues should include a reproduction of the bug. label Feb 12, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes the scale property handling for month header navigation actions in the date-picker component. Previously, the navigation buttons (next/prev month) were forced to use either "l" or "m" scale regardless of the parent's scale, which has been corrected to inherit the scale directly.

Changes:

  • Removed scale transformation logic that was mapping "s" scale to "m" for month header actions
  • Updated test story to remove hardcoded scale attribute, allowing proper scale testing

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/components/src/components/date-picker-month-header/date-picker-month-header.tsx Simplified scale assignment to pass through the component's scale property directly to month navigation actions
packages/components/src/components/date-picker/date-picker.stories.ts Removed scale attribute from breakpoint test story to allow proper scale inheritance testing

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@driskull driskull added pr ready for visual snapshots Adding this label will run visual snapshot testing. and removed pr ready for visual snapshots Adding this label will run visual snapshot testing. labels Feb 12, 2026
@driskull driskull requested a review from Copilot February 12, 2026 01:20
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@driskull driskull added pr ready for visual snapshots Adding this label will run visual snapshot testing. and removed pr ready for visual snapshots Adding this label will run visual snapshot testing. labels Feb 12, 2026
@driskull driskull removed the pr ready for visual snapshots Adding this label will run visual snapshot testing. label Feb 12, 2026
@driskull driskull marked this pull request as ready for review February 12, 2026 01:27
@driskull driskull added the pr ready for visual snapshots Adding this label will run visual snapshot testing. label Feb 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Bug reports for broken functionality. Issues should include a reproduction of the bug. pr ready for visual snapshots Adding this label will run visual snapshot testing.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant