Bulma: Font Awesome icon(s) doesn't have enough space in a button

Created on 6 Mar 2016  路  7Comments  路  Source: jgthms/bulma

screen shot 2016-03-06 at 21 44 44

<a class="button">
  <i class="fa fa-object-ungroup"></i> fa-object-ungroup
</a>

Most helpful comment

@mnpenner, solution is to wrap your anonymous text block in span:
```html

All 7 comments

I agree that this seems off but the following HTML will give you the expected result:

    <a class="button">
        <span class="icon is-small">
            <i class="fa fa-object-ungroup"></i>
        </span> 
        fa-object-ungroup
    </a>

Thanks! It does look better :smile:

This is tricky one. Because most icons will look good:

screen shot 2016-03-12 at 1 27 08 pm

But @ncksllvn has provided a very good solution.

This is still rendering improperly for me...

image

<button class="button"><span class="icon"><i class="fa fa-plus"></i></span><!-- react-text: 73 --> Add Instruction<!-- /react-text --></button>

Even if I make the button small (<span class="icon is-small">):

image

button > svg {
    margin-right: 8px;
}

your mileage may vary :)

@mnpenner, solution is to wrap your anonymous text block in span:
```html

@mclaudt not working for me

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JenCant picture JenCant  路  3Comments

fundon picture fundon  路  3Comments

leofontes picture leofontes  路  3Comments

dotMastaz picture dotMastaz  路  3Comments

NurdinDev picture NurdinDev  路  3Comments