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
I really like how input-text has status icon functionality, so you don't need to write it yourself.
The only problem with it is configuration. I've added a couple of arguments to input-text-args-desc to alter icon size and tooltip position, and the args list already looks overburdened. Also, I wanted to change particular icons and tooltip color. Since it feels like it's more related to a global theme, I added a couple of atoms with default values for re-com theme that I swap! with particular changes for my theme.
All this made me thinking that it would be nice to have a common way to configure complex components. Some have hard-coded colors or other style elements, many have hard-coded classes for Material Design icons. I think that it'd be great to either extract such things into atoms that can be set to other values in other people's application or to use Less instead of CSS to parameterize different style elements.
If you agree, I think this work can be done gradually and I'd be happy to create new PR for components that I use and want to customize as soon as I start customizing them.
The text was updated successfully, but these errors were encountered:
I really like how
input-text
has status icon functionality, so you don't need to write it yourself.The only problem with it is configuration. I've added a couple of arguments to
input-text-args-desc
to alter icon size and tooltip position, and the args list already looks overburdened. Also, I wanted to change particular icons and tooltip color. Since it feels like it's more related to a global theme, I added a couple of atoms with default values for re-com theme that Iswap!
with particular changes for my theme.All this made me thinking that it would be nice to have a common way to configure complex components. Some have hard-coded colors or other style elements, many have hard-coded classes for Material Design icons. I think that it'd be great to either extract such things into atoms that can be set to other values in other people's application or to use Less instead of CSS to parameterize different style elements.
If you agree, I think this work can be done gradually and I'd be happy to create new PR for components that I use and want to customize as soon as I start customizing them.
The text was updated successfully, but these errors were encountered: