Skip to content

v5: Update badges#28458

Merged
XhmikosR merged 4 commits intomasterfrom
v5-badges
Mar 14, 2019
Merged

v5: Update badges#28458
XhmikosR merged 4 commits intomasterfrom
v5-badges

Conversation

@mdo
Copy link
Copy Markdown
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

@mdo mdo requested a review from a team as a code owner March 12, 2019 00:28
@ysds
Copy link
Copy Markdown
Contributor

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
Copy Markdown
Member Author

mdo commented Mar 14, 2019

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

Copy link
Copy Markdown
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