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

v5: Update badges #28458

Merged
merged 4 commits into from
Mar 14, 2019
Merged

v5: Update badges #28458

merged 4 commits into from
Mar 14, 2019

Conversation

mdo
Copy link
Member

@mdo mdo commented Mar 12, 2019

First pass at updating the badge component per discussions in #27136, other threads, and our team Slack channel. Here's what's included thus far:

  • Drop hover and focus states
  • Drop .badge-* variants and associated mixin for .bg-* utilities
  • Drop .badge-pill for .rounded-pill utility and adjust horizontal padding to find middle ground of .badge and old .badge-pill
  • Remove unused variables
  • Add default color value to .badge base class
  • Update docs to reflect changes

@ysds
Copy link
Member

ysds commented Mar 12, 2019

Please check the first demo on a button :)

https://github.com/twbs/bootstrap/pull/28458/files#diff-f61d8731574dae0fcf82be95eabcf9f5R27

image

- Notifications <span class="badge badge-light">4</span>
+ Notifications <span class="badge bg-secondary">4</span>

- Drop hover and focus states
- Drop .badge-* variants and associated mixin for .bg-* utilities
- Drop .badge-pill for .rounded-pill utliity and adjust horizontal padding to find middle ground of .badge and old .badge-pill
- Remove unused variables
- Add default color value to .badge base class
- Update docs to reflect changes
@mdo
Copy link
Member Author

mdo commented Mar 14, 2019

This should be ready for review @twbs/css-review. Thanks @XhmikosR for rebasing!

Copy link
Member

@MartijnCuppens MartijnCuppens left a comment

Choose a reason for hiding this comment

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

Way better! I was thinking about combining the .btns and .badges into one component, but we'll get in trouble with the hover states if we do that.

@XhmikosR XhmikosR merged commit c16532c into master Mar 14, 2019
@XhmikosR XhmikosR deleted the v5-badges branch March 14, 2019 17:15
XhmikosR added a commit that referenced this pull request Aug 3, 2019
XhmikosR added a commit that referenced this pull request Aug 4, 2019
lucanos pushed a commit to lucanos/bootstrap that referenced this pull request Oct 27, 2019
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.

4 participants