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.

Checkbox without label

See original GitHub issue

Using bootstrap-vue@2.0.0-rc.15.

<b-form-checkbox> requires a label to work properly. If label is empty, there’s extra padding/margin around the checkbox.

A workaround is to add plain prop to <b-form-checkbox>.

Here’s Bootstrap documentation on checkbox without labels: https://getbootstrap.com/docs/4.1/components/forms/#without-labels

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
tmorehousecommented, Mar 25, 2019

checks and radios (individual ones), default to stacked mode, which will have vertical margins. Try setting the inline prop

1reaction
redrawcommented, Mar 25, 2019

@tmorehouse thanks for the quick update! for non-plain mode, adding mr-0 removes the right margin, but there’s still a top space that makes the checkbox be placed like one line below the following inline elements. Not sure if you can reproduce it or you need an example

Read more comments on GitHub >

github_iconTop Results From Across the Web

Styling a checkbox without the label tag - Stack Overflow
I made a checkbox style and it uses the label tag. See below. Is it possible to still have the CSS of the...
Read more >
Why Your Checkboxes Need to Have Label Tags
All checkboxes have labels, but not all use label tags. This makes it hard for users to tick the checkbox. Without label tags,...
Read more >
Checkbox with no label or ID - Material Design for Bootstrap
Hi, I have a table where I want to put a checkbox in one column in every row. There is a header at...
Read more >
Toggle (checkbox without label) - CodePen
URL Extension Required. When linking another Pen as a resource, make sure you use a URL Extension of the type of code you...
Read more >
Checkboxes won't render without label, and label needs to be ...
I've noticed that checkboxes only appear if they are coded like this: <input type="checkbox" id="checkboxid"><label for="checkboxid">Yes?
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