bokuweb / re-bulma

[Deprecated] 💎Bulma components for React
http://bokuweb.github.io/re-bulma/
MIT License
364 stars 66 forks source link

Excessive spaces in the "class" attribute. #50

Open Sadofsky opened 7 years ago

Sadofsky commented 7 years ago

For example, i noticed this in components Button and Input, if use own class through the className.

This:

<form>
  <Input className="test-input" type="text" placeholder="Test input" />
  <Button className="test-button" type="submit" color="isPrimary">Test Button</Button>
</form>

Compiled into:

<form>
  <p class="__re-bulma_control    test-input">
    <input class="__re-bulma_input" placeholder="Test input">
  </p>
  <button class="__re-bulma_button  __re-bulma_is-primary    test-button">
    Test Button
  </button>
</form>