Fork me on GitHub
#fulcro
<
2020-10-13
>
xceno11:10:51

There's the decimal-field in fulcro-rad-sematic-ui , how can I add support for internationalization to it? Should I just replace the :https://github.com/fulcrologic/fulcro-rad-semantic-ui/blob/develop/src/main/com/fulcrologic/rad/rendering/semantic_ui/decimal_field.cljc#L13 or use fulcro-i18n and do something more "clever" ?

tony.kay16:10:40

Localization isn’t done yet. For now, you can just install a new “style” of control that does what you need and install it as a UI control and select that style for the control in your form

tony.kay16:10:06

Using a more advanced and localized control is the eventual full solution

xceno18:10:48

I see, alright that'll do. Thanks!

njj16:10:22

Is the preferred way of writing custom css for a Fulcro application through the fulcro-garden-css lib?

wilkerlucio16:10:07

yes, via the :css part of the components

tony.kay16:10:26

“preferred” is a tough question, IMO

wilkerlucio16:10:16

right, I think better to say "I prefer it", hehe, I love the css isolation I get with fulcro and garden, so I like it, but Tony is right, if you don't like it, totally fine to don't use too

tony.kay16:10:41

Here’s how I look at it: If you’d like your component to have css that is name-munged so it does not conflict with other css libs, then it is a convenient way to do it. Ultimately, that is really all the lib does: namespaces the css classes to the component in question. It’s perfectly reasonable to hand-write small app customizations in a simple css file (or use sass/less/etc) or a theme for semantic ui, etc.

tony.kay16:10:21

So, a library author that is trying to make exported and reusable controls for Fulcro might choose to do component-localized css just to make it easier to pull into your app.

tony.kay16:10:06

but I personally do not use the feature on my own apps 🙂

tony.kay16:10:25

(I hate writing css, so I lean very heavily on pre-written libs of css that I can theme)

👍 3
tony.kay16:10:47

and for minor tweaks I just use :style

njj17:10:58

thanks all

njj17:10:36

I’m hoping to lean heavily on a css framework and have very minimal custom css 🤞

dvingo18:10:24

I've been happy using emotion css-in-js with fulcro: https://dvingo.github.io/cljs-emotion/#!/dv.cljs_emotion.devcards

👀 3
fjolne21:10:44

for me the major pain-point in dynamic CSS (fulcro-garden-css & :style) is that it’s hard to apply a build pipeline to it: autoprefixing & minification depending on prod/dev env also hard to do complex styles which span multiple components i’m mostly using TailwindCSS + classic CSS files with PostCSS for reusable components and complex stuff, rarely fulcro-garden-css (mostly for custom grids & custom at-media breakpoints)