-
Notifications
You must be signed in to change notification settings - Fork 84
fix(date-picker): set appropriate scale for month header actions #13922
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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.
There was a problem hiding this 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.
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.