day8 / re-com

A ClojureScript library of reusable components for Reagent
https://re-com.day8.com.au
MIT License
798 stars 147 forks source link

Button is impervious to attempts to style/align it... #99

Closed johanatan closed 3 years ago

johanatan commented 8 years ago

... due to it having been embedded within a 'box' whose styles are untouchable by user code. e.g., try setting "padding-left: 5em" on a button and notice that the text inside is padded but the button itself occupies the entire padded space. Another example: try setting "align-self: flex-end" and notice that it doesn't have any effect at all.

arichiardi commented 7 years ago

Yep, I think this issue is the same as this: https://github.com/Day8/re-com/issues/76

johanatan commented 7 years ago

Yes, looks the same to me as well.

superstructor commented 3 years ago

As of 2.12.0 this should be solved by use of the new :parts arg and the :wrapper part keyword; see https://re-com.day8.com.au/#/button 'Parts' section.