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 pagination page items border radius #36828

Merged
merged 1 commit into from Jul 25, 2022
Merged

Conversation

julien-deramond
Copy link
Member

@julien-deramond julien-deramond commented Jul 24, 2022

Description

Modify @if $pagination-margin-start == (calc($pagination-border-width * -1)) { to work like the recent fix done in 154916c.

Motivation & Context

In some Sass compilers ($pagination-border-width * -1) == (calc($pagination-border-width * -1)) is evaluated to false and some users, like the issue's author, can see an unexpected border radius for .page-items in a pagination.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have read the contributing guidelines
  • My code follows the code style of the project (using npm run lint)
  • My change introduces changes to the documentation
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed

Related issues

Fixes #36820

Live preview

@Yohn
Copy link
Contributor

Yohn commented Jul 25, 2022

After I compiled the changes you pointed out the other week, I did fail to look at the pagination component to see how it rendered. I should have done that. I was just checking to see if it would compile without throwing any error.

Good catch and quick fix. I'll keep in mind moving forward to make sure I inspect each component modified - and to get the contributing post template.

@mdo mdo force-pushed the main-jd-fix-pagination-border-radius branch from 44a5802 to 08586a4 Compare July 25, 2022 21:52
@mdo mdo merged commit a153f36 into main Jul 25, 2022
@mdo mdo deleted the main-jd-fix-pagination-border-radius branch July 25, 2022 22:00
@agis
Copy link

agis commented Aug 12, 2022

Will this be backported to 5.2.0, since it's a bug and a breaking change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Erroneous border-radius inside Pagination
4 participants