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

Replace non-existent --bs-btn-padding by --bs-btn-padding-{x|y} #35886

Merged
merged 1 commit into from
Feb 23, 2022

Conversation

julien-deramond
Copy link
Member

@julien-deramond julien-deramond commented Feb 23, 2022

--#{$variable-prefix}btn-padding doesn't exist so the custom sizing button with CSS variables is not fully functional.

In this fix, I chose to keep 2 separate vars but it could probably be only 1 var.

Preview


Note: there is another bug that can be seen in this page: the last buttons are not vertically aligned with the other buttons in a same row in the examples. It is probably due to the new rule in 37f3977:

> :not(hr):last-child {
  margin-bottom: 0;
}

Capture d’écran 2022-02-23 à 14 18 02

I can create an issue if needed.

@julien-deramond julien-deramond marked this pull request as ready for review February 23, 2022 13:12
@julien-deramond julien-deramond requested a review from a team as a code owner February 23, 2022 13:12
Copy link
Member

@ffoodd ffoodd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Regarding alignment, the selector specifity increased so that may be the cause, indeed. Feel free to open an issue or a PR ❤️

@julien-deramond
Copy link
Member Author

I've created #35890 because I'm not sure to have the time soon to fix it in a PR.

@mdo mdo merged commit 3676591 into twbs:main Feb 23, 2022
@julien-deramond julien-deramond deleted the main-jd-fix-buttons-css-vars branch February 23, 2022 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants