Skip to content
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): fix bottom margin of number input when inside a form #5676

Merged
merged 1 commit into from
Dec 7, 2022

Conversation

robinzigmond
Copy link
Contributor

@robinzigmond robinzigmond commented Dec 6, 2022

Ensure the "current page" input field of Pager always has margin-bottom 0, even when inside a form.

Note - this is a fix for the change already merged from this PR, which doesn't always work due to CSS rules having the same specificity. This PR increases the specificity of the margin-bottom: 0 in Pager and adds a Cypress test to ensure the correct CSS is applies in the browser.

fix #5650 (properly this time!)

Proposed behaviour

Current behaviour

Checklist

  • Commits follow our style guide
  • Related issues linked in commit messages if required
  • Screenshots are included in the PR if useful
  • All themes are supported if required
  • Unit tests added or updated if required
  • Cypress automation tests added or updated if required
  • Storybook added or updated if required
  • Translations added or updated (including creating or amending translation keys table in storybook) if required
  • Typescript d.ts file added or updated if required
  • Related docs have been updated if required

QA

  • Tested in CodeSandbox/storybook
  • Add new Cypress test coverage if required
  • Carbon implementation matches Design System/designs
  • UI Tests GitHub check reviewed if required

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].

@codesandbox-ci
Copy link

codesandbox-ci bot commented Dec 6, 2022

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 242d29c:

Sandbox Source
carbon-quickstart Configuration
carbon-quickstart-typescript Configuration
carbon-quickstart PR
great-bouman-vbw567 Issue #5650

Ensure the "current page" input field of Pager always has margin-bottom 0, even when inside a form.

fix #5650
@cypress
Copy link

cypress bot commented Dec 6, 2022



Test summary

4027 0 6 0Flakiness 0


Run details

Project carbon
Status Passed
Commit 242d29c
Started Dec 6, 2022 4:45 PM
Ended Dec 6, 2022 4:51 PM
Duration 05:55 💡
OS Linux Debian - 11.4
Browser Chrome 106

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

@robinzigmond robinzigmond marked this pull request as ready for review December 6, 2022 16:41
@robinzigmond robinzigmond requested review from a team as code owners December 6, 2022 16:41
@robinzigmond robinzigmond merged commit 3cd5aad into master Dec 7, 2022
@robinzigmond robinzigmond deleted the FE-5565-second-fix branch December 7, 2022 09:20
@carbonci
Copy link
Collaborator

carbonci commented Dec 7, 2022

🎉 This PR is included in version 111.13.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

DipperTheDan added a commit that referenced this pull request Apr 17, 2023
Link component was used as a button currenly does not supply the button with a type. This has caused
a bug when `Pager` is used in a `Form`. The bug was causing the `onPrevious` callback function in
`Pager` to be called in an onClick event when the enter key pressed.

fixes #5676
carbonci pushed a commit that referenced this pull request Apr 20, 2023
### [117.7.1](v117.7.0...v117.7.1) (2023-04-20)

### Bug Fixes

* **link:** ensure button has a type when used ([065c206](065c206)), closes [#5676](#5676)
@carbonci
Copy link
Collaborator

🎉 This issue has been resolved in version 117.7.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Pager input has uneeded margin
5 participants