You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bitters' default <button> and <a> styles are very useful. However, it's often the case that you want an HTML button to visually appear as a link, or vice versa, which forces CSS to undo CSS, like this 33-line monster:
However, introducing classes in Bitters would represent a major philosophical change.
I think it would be worthwhile for us to explore this. Bitters having only element styles has been a “soft” feature or intention (from my perspective). I’m not sure we’ve ever fully explained or documented why that is and so it feels open to interpretation and iteration. I am very keen on not limiting ourselves to just element styles and would be fine with classes existing here.
@keiranking Bitters aside, do you have a preferred means of tackling what you describe above? In a perfect situation, what’s your ideal way of styling buttons?
Bitters' default
<button>
and<a>
styles are very useful. However, it's often the case that you want an HTML button to visually appear as a link, or vice versa, which forces CSS to undo CSS, like this 33-line monster:I wrote that code, and I'm a worse person because of it.
Opt-in button and link classes might:
However, introducing classes in Bitters would represent a major philosophical change.
The text was updated successfully, but these errors were encountered: