4 ms·
Can I ask the reasoning behind `is-` and `has-` prefixes on bulma modifiers? I'm sure you were asked before but didnt see anything in docs <a class="butto
by chrisan 9y ago
Can I ask the reasoning behind `is-` and `has-` prefixes on bulma modifiers? I'm sure you were asked before but didnt see anything in docs
<a class="button is-primary is-inverted is-outlined">Invert Outlined</a>
vs
<a class="button primary inverted outlined">Invert Outlined</a>
- bbx 9y agoI felt it was easier to read and understand, since the "is-" or "has-" clearly shows it's a modifier class, and not a base class. Also, it prevents the namespace from being "polluted" by class names that could be used for other things. For example, there's a "box" element, and a "is-boxed" modifier for the "navbar". Lastly, the same modifier class can be used on different elements, since they are specific to the context in which they're used.
- chrisan 9y agoThanks for the reply, makes sense now that you explain it that way :)