question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Badges and pills literally doesn't work

See original GitHub issue
              <Button variant="primary">
                Profile <Badge variant="light">9</Badge>
                <span className="sr-only">unread messages</span>
              </Button>

Tried every variation of the badges and pills and none of them are showing correctly:

2021-05-18_15-35

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kyletsangcommented, Jul 20, 2021

I’m trying to use badges like this:

<Badge bg="warning">Warning</Badge>

But it says " Property ‘bg’ does not exist on type 'IntrinsicAttributes… " ‘variant’ exists but it doesn’t style anything.

i am using react-bootstrap 1.6.1 and bootstrap 5.0.2

update react-bootstrap to v2 beta.

1.6.1 is not compatible with bootstrap 5

0reactions
JosephVoidcommented, Jul 20, 2021

@kyletsang it worked, thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bootstrap 4 badge not working - just not showing up
It did not work because there was no background colour applied to the badges. Since bootstrap already has a 'bg' component for background...
Read more >
Badge Background and Badge Pill styles are missing #31217
Using the classes listed below, the badge component seems to not be displaying the proper styles for badge-pill. The background color is also ......
Read more >
Badges · Bootstrap v5.0
Documentation and examples for badges, our small count and labeling component. On this page. Examples. Headings; Buttons; Positioned. Background colors; Pill ...
Read more >
Disruptive Behavior Disorders | Boston Children's Hospital
Disruptive behavior disorders are a group of behavioral problems. Learn more from Boston Children's Hospital.
Read more >
Why does the Instagram iOS app not use the badge notification?
For modern iOS versions the app must ask for your approval before it badges the icon. Once you approve that request, the specific...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found