Re:Lit: A ridiculously small responsive CSS framework
by isakkeyten on Sunday May 03, 2020 @10:45AM
(#23059293)
out of curiosity, what was the scenario?
[ Parent
| on HN ]
Re:Lit: A ridiculously small responsive CSS framework
by tenaciousDaniel on Sunday May 03, 2020 @11:32AM
(#23059586)
Converting a tree-like structure into a nested form inputs. Material seems to be rather opinionated about what a "form" is, and I found it too constricting for my needs.
More specifically, the TextField component assumes an accompanying label, while none of the other form components do. It seems like a very odd choice to me, since all form elements should have a descriptive label.
Re:Lit: A ridiculously small responsive CSS framework
by mikewhy on Sunday May 03, 2020 @03:51PM
(#23061366)
TextField is already a composition of other components.
The demo page for Checkbox (https://material-ui.com/components/checkboxes/) shows how to use them with labels, and also groups.
Agreed there should be something included for CheckboxWithLabel, but to think it's impossible and the whole thing must be thrown out is a bit much.
Re:Lit: A ridiculously small responsive CSS framework
by tenaciousDaniel on Sunday May 03, 2020 @05:42PM
(#23062078)
Eh I wasn't super descriptive in my response, but it was connected to that. It wasn't that I didn't see a solution, it was more "how much effort modifying in a solution will take vs just writing it myself". I decided the latter was more cost-effective for my particular use case.
Re:Lit: A ridiculously small responsive CSS framework
by micael_dias on Sunday May 03, 2020 @03:25PM
(#23061208)
What input didn't have a label? I'm using mui in a webapp and didn't find any I couldn't add a label to.