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

Button spacing issue #4452

Closed
skolasbn opened this issue Dec 4, 2019 · 4 comments
Closed

Button spacing issue #4452

skolasbn opened this issue Dec 4, 2019 · 4 comments

Comments

@skolasbn
Copy link

skolasbn commented Dec 4, 2019

I'm having issues with default button spacing - my button's are smashed together like this:
Screen Shot 2019-12-04 at 10 37 43 AM

but i'd like them to look like the examples on this site

Screen Shot 2019-12-04 at 10 36 56 AM

Not sure what's causing this. Thanks!

@tmorehouse
Copy link
Member

Buttons do not have margins. You can do one of two things. Add a space between the buttons (but Vue may remove the white-space when compiling the template), or add a margin spacing utility class to the buttons"

<div>
  <b-button class="mr-1">Button</b-button>
  <b-button class="mr-1">Button</b-button>
  <b-button class="mr-1">Button</b-button>
  <b-button>Button</b-button>
</div>

@skolasbn
Copy link
Author

skolasbn commented Dec 4, 2019

Thanks @tmorehouse - I was hoping that it would add the spacing automatically - as i didnt see any classes on the example and its a pain to remember - i know i can add default spacing with a css rule. Mostly was just trying to figure out why the site examples had a space and my app doesnt.

@tmorehouse
Copy link
Member

tmorehouse commented Dec 4, 2019

The docs are using the full version of Vue (using the built in Vue template compiler). Whereas I am guessing you are using Single File Components and Vue loader (which, by default, removes white-space between tags).

@skolasbn
Copy link
Author

skolasbn commented Dec 4, 2019

Ah! Thank you :)

@skolasbn skolasbn closed this as completed Dec 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants