This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-10-13
Channels
- # announcements (1)
- # babashka (41)
- # beginners (194)
- # calva (14)
- # chlorine-clover (2)
- # cider (32)
- # circleci (9)
- # cljsrn (10)
- # clojure (110)
- # clojure-australia (1)
- # clojure-berlin (2)
- # clojure-dev (39)
- # clojure-europe (42)
- # clojure-france (3)
- # clojure-nl (19)
- # clojure-spec (22)
- # clojure-uk (23)
- # clojurescript (21)
- # conjure (41)
- # datomic (33)
- # depstar (16)
- # duct (46)
- # events (1)
- # fulcro (17)
- # graphql (14)
- # jobs (6)
- # jobs-discuss (9)
- # leiningen (6)
- # malli (29)
- # off-topic (21)
- # pathom (7)
- # portal (1)
- # rdf (81)
- # re-frame (3)
- # reagent (12)
- # reitit (2)
- # remote-jobs (1)
- # rum (1)
- # shadow-cljs (60)
- # specter (1)
- # sql (13)
- # tools-deps (23)
- # vrac (1)
- # yada (19)
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" ?
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
Is the preferred way of writing custom css for a Fulcro application through the fulcro-garden-css lib?
yes, via the :css
part of the components
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
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.
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.
(I hate writing css, so I lean very heavily on pre-written libs of css that I can theme)
I've been happy using emotion css-in-js with fulcro: https://dvingo.github.io/cljs-emotion/#!/dv.cljs_emotion.devcards
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)