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
CSS has the ability to do text transformations: (uppercase, lowercase, etc). Does Elm UI has it? It seems not the case.
Generated Elm code
So, how do you translate lower case, uppercase in the generated Elm code? Should we pass the typed string value in the editor thru String.toUpper before rendering or CodeGen it?
Or maybe we leave the typed value untouched and we generate code that calls String.toUpper?
The UI
I guess this is best done via a pill selector Aa | AA | aa similar to Sketch (see below), mapped to a Elm type:
type FontTransform
= Uppercase
| Lowercase
| None
A little digression about Small-caps
On related topic: should stuff like “small-caps”, which in Elm UI is a font feature, be in the same group of the text transformation functions? Perhaps it makes sense to a have a different place in the UI for the OpenType features.
If I look at Sketch it has a little Text Options panel (first), while Figma group everything into a Type details panel (second).
The text was updated successfully, but these errors were encountered:
CSS has the ability to do text transformations: (uppercase, lowercase, etc). Does Elm UI has it? It seems not the case.
Generated Elm code
So, how do you translate lower case, uppercase in the generated Elm code? Should we pass the typed string value in the editor thru
String.toUpper
before rendering or CodeGen it?Or maybe we leave the typed value untouched and we generate code that calls
String.toUpper
?The UI
I guess this is best done via a pill selector
Aa | AA | aa
similar to Sketch (see below), mapped to a Elm type:A little digression about Small-caps
On related topic: should stuff like “small-caps”, which in Elm UI is a font feature, be in the same group of the text transformation functions? Perhaps it makes sense to a have a different place in the UI for the OpenType features.
If I look at Sketch it has a little Text Options panel (first), while Figma group everything into a Type details panel (second).
The text was updated successfully, but these errors were encountered: