-
Notifications
You must be signed in to change notification settings - Fork 665
Scheduler - Appointment Form - Fix layout when labelLocation is static #32255
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: 26_1
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 layout issues in the Scheduler appointment form when labelMode is set to 'static'. The fix dynamically adjusts icon positioning based on whether form field labels are positioned at the top or inline.
Changes:
- Added dynamic icon alignment logic that detects label positioning and applies appropriate CSS classes
- Removed hardcoded CSS margin rules and replaced them with conditional class-based styling
- Added visual regression tests for
labelMode='static'scenarios
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
packages/devextreme/js/__internal/scheduler/appointment_popup/m_form.ts |
Added new CSS class constants and alignIconsWithEditors() method to dynamically apply margin classes to icons based on label positioning |
packages/devextreme-scss/scss/widgets/generic/scheduler/_sizes.scss |
Added new SCSS variable for icon inner-label margin-top in generic theme |
packages/devextreme-scss/scss/widgets/generic/scheduler/_index.scss |
Added CSS rule for .dx-scheduler-form-inner-label-offset class |
packages/devextreme-scss/scss/widgets/base/scheduler/_index.scss |
Moved margin-top from icon to top-label-offset class, removed hardcoded overrides |
e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/recurrence-form.visual.ts |
Added visual test for recurrence form with labelMode='static' |
e2e/testcafe-devextreme/tests/scheduler/common/appointmentForm/form.visual.ts |
Added visual test for main appointment form with labelMode='static' |
No description provided.