-
Notifications
You must be signed in to change notification settings - Fork 84
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
fix(pager): ensure there is no margin-bottom on page number input #5660
Conversation
When rendered inside a Form component, the numberic input on Pager gets CSS rules to given it margin-bottom equal to the Form's field-spacing prop. In order to ensure the sub-components of Pager stay in line it always needs 0 margin-bottom, so a CSS rule has been added to set this, and made more specific that the one in Form. fix #5650
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 7629ac7:
|
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
🎉 This PR is included in version 111.13.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
When rendered inside a Form component, the numeric input on Pager gets CSS rules to given it margin-bottom equal to the Form's field-spacing prop. In order to ensure the sub-components of Pager stay in line it always needs 0 margin-bottom, so a CSS rule has been added to set this, and made more specific that the one in Form.
fix #5650
Proposed behaviour
The number input on Pager should never have any bottom-margin, even when inside a Form.
Current behaviour
A Pager inside a Form is given bottom margin according to the Form's FieldSpacing prop (24px by default), causing it to not line up with the text.
Checklist
d.ts
file added or updated if requiredQA
Additional context
Testing instructions
The following CodeSandbox is an example of the broken behaviour.
You can see the new behaviour by looking at the version in the comment by
codesandbox[bot]
.